diff --git a/Cargo.lock b/Cargo.lock index 684aacea..ea535e01 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -54,6 +54,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "db65328fda517795f476b9d1b0794199cce180077e204629946a0705f0093093" dependencies = [ "arborium-bash", + "arborium-c", "arborium-css", "arborium-highlight", "arborium-html", @@ -79,6 +80,17 @@ dependencies = [ "tree-sitter-language", ] +[[package]] +name = "arborium-c" +version = "2.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f548f9082e4058b76a7c380033ad5f8d171e56999644fe5f92cfa3e70d3961f" +dependencies = [ + "arborium-sysroot", + "cc", + "tree-sitter-language", +] + [[package]] name = "arborium-css" version = "2.16.0" @@ -309,6 +321,7 @@ dependencies = [ name = "bough-core" version = "0.0.2" dependencies = [ + "arborium-c", "arborium-javascript", "arborium-python", "arborium-tree-sitter", diff --git a/corpus/c/add-assign/2a8bff9b524b.c b/corpus/c/add-assign/2a8bff9b524b.c new file mode 100644 index 00000000..8a8855af --- /dev/null +++ b/corpus/c/add-assign/2a8bff9b524b.c @@ -0,0 +1 @@ +void f() { x += 0; } diff --git a/corpus/c/add-assign/2a8bff9b524b.mutation.json b/corpus/c/add-assign/2a8bff9b524b.mutation.json new file mode 100644 index 00000000..697762ab --- /dev/null +++ b/corpus/c/add-assign/2a8bff9b524b.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/c/add-assign/3bc28f67f609.c b/corpus/c/add-assign/3bc28f67f609.c new file mode 100644 index 00000000..adda9741 --- /dev/null +++ b/corpus/c/add-assign/3bc28f67f609.c @@ -0,0 +1 @@ +void f() { x += -1; } diff --git a/corpus/c/add-assign/3bc28f67f609.mutation.json b/corpus/c/add-assign/3bc28f67f609.mutation.json new file mode 100644 index 00000000..116c3005 --- /dev/null +++ b/corpus/c/add-assign/3bc28f67f609.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/c/add-assign/4002d6526b22.c b/corpus/c/add-assign/4002d6526b22.c new file mode 100644 index 00000000..56757a70 --- /dev/null +++ b/corpus/c/add-assign/4002d6526b22.c @@ -0,0 +1 @@ +void f() {} diff --git a/corpus/c/add-assign/4002d6526b22.mutation.json b/corpus/c/add-assign/4002d6526b22.mutation.json new file mode 100644 index 00000000..0ea8d2e2 --- /dev/null +++ b/corpus/c/add-assign/4002d6526b22.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": "StatementBlock", + "subst_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 20, + "byte": 20 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 20, + "byte": 20 + } + } + }, + "subst": "{}" +} \ No newline at end of file diff --git a/corpus/c/add-assign/43b73202da01.c b/corpus/c/add-assign/43b73202da01.c new file mode 100644 index 00000000..89389f73 --- /dev/null +++ b/corpus/c/add-assign/43b73202da01.c @@ -0,0 +1 @@ +void f() { x += 1; } diff --git a/corpus/c/add-assign/43b73202da01.mutation.json b/corpus/c/add-assign/43b73202da01.mutation.json new file mode 100644 index 00000000..a5659b62 --- /dev/null +++ b/corpus/c/add-assign/43b73202da01.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/c/add-assign/852b52007446.c b/corpus/c/add-assign/852b52007446.c new file mode 100644 index 00000000..75f6b237 --- /dev/null +++ b/corpus/c/add-assign/852b52007446.c @@ -0,0 +1 @@ +void f() { x = 1; } diff --git a/corpus/c/add-assign/852b52007446.mutation.json b/corpus/c/add-assign/852b52007446.mutation.json new file mode 100644 index 00000000..cafb997a --- /dev/null +++ b/corpus/c/add-assign/852b52007446.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Assign": "AddAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "=" +} \ No newline at end of file diff --git a/corpus/c/add-assign/base.c b/corpus/c/add-assign/base.c new file mode 100644 index 00000000..89389f73 --- /dev/null +++ b/corpus/c/add-assign/base.c @@ -0,0 +1 @@ +void f() { x += 1; } diff --git a/corpus/c/add-assign/faf1f85e307e.c b/corpus/c/add-assign/faf1f85e307e.c new file mode 100644 index 00000000..dfcceea3 --- /dev/null +++ b/corpus/c/add-assign/faf1f85e307e.c @@ -0,0 +1 @@ +void f() { x -= 1; } diff --git a/corpus/c/add-assign/faf1f85e307e.mutation.json b/corpus/c/add-assign/faf1f85e307e.mutation.json new file mode 100644 index 00000000..0db196ff --- /dev/null +++ b/corpus/c/add-assign/faf1f85e307e.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Assign": "AddAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "-=" +} \ No newline at end of file diff --git a/corpus/c/array-decl-inline/1bab9707c296.c b/corpus/c/array-decl-inline/1bab9707c296.c new file mode 100644 index 00000000..8d750d7d --- /dev/null +++ b/corpus/c/array-decl-inline/1bab9707c296.c @@ -0,0 +1 @@ +int arr[] = {1, 1, 3}; diff --git a/corpus/c/array-decl-inline/1bab9707c296.mutation.json b/corpus/c/array-decl-inline/1bab9707c296.mutation.json new file mode 100644 index 00000000..a5659b62 --- /dev/null +++ b/corpus/c/array-decl-inline/1bab9707c296.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/c/array-decl-inline/3a5acb632fe4.c b/corpus/c/array-decl-inline/3a5acb632fe4.c new file mode 100644 index 00000000..c91749be --- /dev/null +++ b/corpus/c/array-decl-inline/3a5acb632fe4.c @@ -0,0 +1 @@ +int arr[] = {}; diff --git a/corpus/c/array-decl-inline/3a5acb632fe4.mutation.json b/corpus/c/array-decl-inline/3a5acb632fe4.mutation.json new file mode 100644 index 00000000..979b8dd5 --- /dev/null +++ b/corpus/c/array-decl-inline/3a5acb632fe4.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "ArrayDecl": "Inline" + }, + "subst_span": { + "start": { + "line": 0, + "col": 12, + "byte": 12 + }, + "end": { + "line": 0, + "col": 21, + "byte": 21 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 12, + "byte": 12 + }, + "end": { + "line": 0, + "col": 21, + "byte": 21 + } + } + }, + "subst": "{}" +} \ No newline at end of file diff --git a/corpus/c/array-decl-inline/42d181bc9d5f.c b/corpus/c/array-decl-inline/42d181bc9d5f.c new file mode 100644 index 00000000..19264687 --- /dev/null +++ b/corpus/c/array-decl-inline/42d181bc9d5f.c @@ -0,0 +1 @@ +int arr[] = {-1, 2, 3}; diff --git a/corpus/c/array-decl-inline/42d181bc9d5f.mutation.json b/corpus/c/array-decl-inline/42d181bc9d5f.mutation.json new file mode 100644 index 00000000..beffd03e --- /dev/null +++ b/corpus/c/array-decl-inline/42d181bc9d5f.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/c/array-decl-inline/5476a3c2bc98.c b/corpus/c/array-decl-inline/5476a3c2bc98.c new file mode 100644 index 00000000..733ece01 --- /dev/null +++ b/corpus/c/array-decl-inline/5476a3c2bc98.c @@ -0,0 +1 @@ +int arr[] = {1, -1, 3}; diff --git a/corpus/c/array-decl-inline/5476a3c2bc98.mutation.json b/corpus/c/array-decl-inline/5476a3c2bc98.mutation.json new file mode 100644 index 00000000..116c3005 --- /dev/null +++ b/corpus/c/array-decl-inline/5476a3c2bc98.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/c/array-decl-inline/69a041fa7a0d.c b/corpus/c/array-decl-inline/69a041fa7a0d.c new file mode 100644 index 00000000..8234140b --- /dev/null +++ b/corpus/c/array-decl-inline/69a041fa7a0d.c @@ -0,0 +1 @@ +int arr[] = {1, 2, 3}; diff --git a/corpus/c/array-decl-inline/69a041fa7a0d.mutation.json b/corpus/c/array-decl-inline/69a041fa7a0d.mutation.json new file mode 100644 index 00000000..e57a8873 --- /dev/null +++ b/corpus/c/array-decl-inline/69a041fa7a0d.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/c/array-decl-inline/a213875e3483.c b/corpus/c/array-decl-inline/a213875e3483.c new file mode 100644 index 00000000..bd5a253a --- /dev/null +++ b/corpus/c/array-decl-inline/a213875e3483.c @@ -0,0 +1 @@ +int arr[] = {1, 2, 1}; diff --git a/corpus/c/array-decl-inline/a213875e3483.mutation.json b/corpus/c/array-decl-inline/a213875e3483.mutation.json new file mode 100644 index 00000000..4f009024 --- /dev/null +++ b/corpus/c/array-decl-inline/a213875e3483.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 19, + "byte": 19 + }, + "end": { + "line": 0, + "col": 20, + "byte": 20 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 19, + "byte": 19 + }, + "end": { + "line": 0, + "col": 20, + "byte": 20 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/c/array-decl-inline/b6df92f37f31.c b/corpus/c/array-decl-inline/b6df92f37f31.c new file mode 100644 index 00000000..93e4919c --- /dev/null +++ b/corpus/c/array-decl-inline/b6df92f37f31.c @@ -0,0 +1 @@ +int arr[] = {1, 2, -1}; diff --git a/corpus/c/array-decl-inline/b6df92f37f31.mutation.json b/corpus/c/array-decl-inline/b6df92f37f31.mutation.json new file mode 100644 index 00000000..5fe1a239 --- /dev/null +++ b/corpus/c/array-decl-inline/b6df92f37f31.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 19, + "byte": 19 + }, + "end": { + "line": 0, + "col": 20, + "byte": 20 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 19, + "byte": 19 + }, + "end": { + "line": 0, + "col": 20, + "byte": 20 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/c/array-decl-inline/base.c b/corpus/c/array-decl-inline/base.c new file mode 100644 index 00000000..8234140b --- /dev/null +++ b/corpus/c/array-decl-inline/base.c @@ -0,0 +1 @@ +int arr[] = {1, 2, 3}; diff --git a/corpus/c/array-decl-inline/c2d05814b421.c b/corpus/c/array-decl-inline/c2d05814b421.c new file mode 100644 index 00000000..29964c87 --- /dev/null +++ b/corpus/c/array-decl-inline/c2d05814b421.c @@ -0,0 +1 @@ +int arr[] = {1, 2, 0}; diff --git a/corpus/c/array-decl-inline/c2d05814b421.mutation.json b/corpus/c/array-decl-inline/c2d05814b421.mutation.json new file mode 100644 index 00000000..c5da994c --- /dev/null +++ b/corpus/c/array-decl-inline/c2d05814b421.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 19, + "byte": 19 + }, + "end": { + "line": 0, + "col": 20, + "byte": 20 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 19, + "byte": 19 + }, + "end": { + "line": 0, + "col": 20, + "byte": 20 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/c/array-decl-inline/c9a77dbb22e2.c b/corpus/c/array-decl-inline/c9a77dbb22e2.c new file mode 100644 index 00000000..52148f5e --- /dev/null +++ b/corpus/c/array-decl-inline/c9a77dbb22e2.c @@ -0,0 +1 @@ +int arr[] = {0, 2, 3}; diff --git a/corpus/c/array-decl-inline/c9a77dbb22e2.mutation.json b/corpus/c/array-decl-inline/c9a77dbb22e2.mutation.json new file mode 100644 index 00000000..56f0d4bf --- /dev/null +++ b/corpus/c/array-decl-inline/c9a77dbb22e2.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/c/array-decl-inline/ee0eddb0f15f.c b/corpus/c/array-decl-inline/ee0eddb0f15f.c new file mode 100644 index 00000000..1d4efba8 --- /dev/null +++ b/corpus/c/array-decl-inline/ee0eddb0f15f.c @@ -0,0 +1 @@ +int arr[] = {1, 0, 3}; diff --git a/corpus/c/array-decl-inline/ee0eddb0f15f.mutation.json b/corpus/c/array-decl-inline/ee0eddb0f15f.mutation.json new file mode 100644 index 00000000..697762ab --- /dev/null +++ b/corpus/c/array-decl-inline/ee0eddb0f15f.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/c/bin-op-add/1ebec37bea1a.c b/corpus/c/bin-op-add/1ebec37bea1a.c new file mode 100644 index 00000000..66caaf0f --- /dev/null +++ b/corpus/c/bin-op-add/1ebec37bea1a.c @@ -0,0 +1 @@ +int x = a * b; diff --git a/corpus/c/bin-op-add/1ebec37bea1a.mutation.json b/corpus/c/bin-op-add/1ebec37bea1a.mutation.json new file mode 100644 index 00000000..35cf7ddb --- /dev/null +++ b/corpus/c/bin-op-add/1ebec37bea1a.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "Add" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "*" +} \ No newline at end of file diff --git a/corpus/c/bin-op-add/9a2b5594eff7.c b/corpus/c/bin-op-add/9a2b5594eff7.c new file mode 100644 index 00000000..710efa6c --- /dev/null +++ b/corpus/c/bin-op-add/9a2b5594eff7.c @@ -0,0 +1 @@ +int x = a - b; diff --git a/corpus/c/bin-op-add/9a2b5594eff7.mutation.json b/corpus/c/bin-op-add/9a2b5594eff7.mutation.json new file mode 100644 index 00000000..e3937c03 --- /dev/null +++ b/corpus/c/bin-op-add/9a2b5594eff7.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "Add" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "-" +} \ No newline at end of file diff --git a/corpus/c/bin-op-add/base.c b/corpus/c/bin-op-add/base.c new file mode 100644 index 00000000..450786fc --- /dev/null +++ b/corpus/c/bin-op-add/base.c @@ -0,0 +1 @@ +int x = a + b; diff --git a/corpus/c/bin-op-and/307aff2972b2.c b/corpus/c/bin-op-and/307aff2972b2.c new file mode 100644 index 00000000..ce83674e --- /dev/null +++ b/corpus/c/bin-op-and/307aff2972b2.c @@ -0,0 +1 @@ +int x = a || b; diff --git a/corpus/c/bin-op-and/307aff2972b2.mutation.json b/corpus/c/bin-op-and/307aff2972b2.mutation.json new file mode 100644 index 00000000..463e494e --- /dev/null +++ b/corpus/c/bin-op-and/307aff2972b2.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "And" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + } + }, + "subst": "||" +} \ No newline at end of file diff --git a/corpus/c/bin-op-and/base.c b/corpus/c/bin-op-and/base.c new file mode 100644 index 00000000..0486f83f --- /dev/null +++ b/corpus/c/bin-op-and/base.c @@ -0,0 +1 @@ +int x = a && b; diff --git a/corpus/c/bin-op-bit-and/4044ae27ba76.c b/corpus/c/bin-op-bit-and/4044ae27ba76.c new file mode 100644 index 00000000..ec7ea64c --- /dev/null +++ b/corpus/c/bin-op-bit-and/4044ae27ba76.c @@ -0,0 +1 @@ +int x = a ^ b; diff --git a/corpus/c/bin-op-bit-and/4044ae27ba76.mutation.json b/corpus/c/bin-op-bit-and/4044ae27ba76.mutation.json new file mode 100644 index 00000000..dd5e59a1 --- /dev/null +++ b/corpus/c/bin-op-bit-and/4044ae27ba76.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "BitAnd" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "^" +} \ No newline at end of file diff --git a/corpus/c/bin-op-bit-and/6005c45a9833.c b/corpus/c/bin-op-bit-and/6005c45a9833.c new file mode 100644 index 00000000..bed2a406 --- /dev/null +++ b/corpus/c/bin-op-bit-and/6005c45a9833.c @@ -0,0 +1 @@ +int x = a | b; diff --git a/corpus/c/bin-op-bit-and/6005c45a9833.mutation.json b/corpus/c/bin-op-bit-and/6005c45a9833.mutation.json new file mode 100644 index 00000000..90bf3092 --- /dev/null +++ b/corpus/c/bin-op-bit-and/6005c45a9833.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "BitAnd" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "|" +} \ No newline at end of file diff --git a/corpus/c/bin-op-bit-and/base.c b/corpus/c/bin-op-bit-and/base.c new file mode 100644 index 00000000..430757cf --- /dev/null +++ b/corpus/c/bin-op-bit-and/base.c @@ -0,0 +1 @@ +int x = a & b; diff --git a/corpus/c/bin-op-bit-or/40313afec42c.c b/corpus/c/bin-op-bit-or/40313afec42c.c new file mode 100644 index 00000000..430757cf --- /dev/null +++ b/corpus/c/bin-op-bit-or/40313afec42c.c @@ -0,0 +1 @@ +int x = a & b; diff --git a/corpus/c/bin-op-bit-or/40313afec42c.mutation.json b/corpus/c/bin-op-bit-or/40313afec42c.mutation.json new file mode 100644 index 00000000..e35b44ff --- /dev/null +++ b/corpus/c/bin-op-bit-or/40313afec42c.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "BitOr" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "&" +} \ No newline at end of file diff --git a/corpus/c/bin-op-bit-or/4044ae27ba76.c b/corpus/c/bin-op-bit-or/4044ae27ba76.c new file mode 100644 index 00000000..ec7ea64c --- /dev/null +++ b/corpus/c/bin-op-bit-or/4044ae27ba76.c @@ -0,0 +1 @@ +int x = a ^ b; diff --git a/corpus/c/bin-op-bit-or/4044ae27ba76.mutation.json b/corpus/c/bin-op-bit-or/4044ae27ba76.mutation.json new file mode 100644 index 00000000..6c59febc --- /dev/null +++ b/corpus/c/bin-op-bit-or/4044ae27ba76.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "BitOr" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "^" +} \ No newline at end of file diff --git a/corpus/c/bin-op-bit-or/base.c b/corpus/c/bin-op-bit-or/base.c new file mode 100644 index 00000000..bed2a406 --- /dev/null +++ b/corpus/c/bin-op-bit-or/base.c @@ -0,0 +1 @@ +int x = a | b; diff --git a/corpus/c/bin-op-bit-xor/40313afec42c.c b/corpus/c/bin-op-bit-xor/40313afec42c.c new file mode 100644 index 00000000..430757cf --- /dev/null +++ b/corpus/c/bin-op-bit-xor/40313afec42c.c @@ -0,0 +1 @@ +int x = a & b; diff --git a/corpus/c/bin-op-bit-xor/40313afec42c.mutation.json b/corpus/c/bin-op-bit-xor/40313afec42c.mutation.json new file mode 100644 index 00000000..fbf939bd --- /dev/null +++ b/corpus/c/bin-op-bit-xor/40313afec42c.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "BitXor" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "&" +} \ No newline at end of file diff --git a/corpus/c/bin-op-bit-xor/6005c45a9833.c b/corpus/c/bin-op-bit-xor/6005c45a9833.c new file mode 100644 index 00000000..bed2a406 --- /dev/null +++ b/corpus/c/bin-op-bit-xor/6005c45a9833.c @@ -0,0 +1 @@ +int x = a | b; diff --git a/corpus/c/bin-op-bit-xor/6005c45a9833.mutation.json b/corpus/c/bin-op-bit-xor/6005c45a9833.mutation.json new file mode 100644 index 00000000..2a0df513 --- /dev/null +++ b/corpus/c/bin-op-bit-xor/6005c45a9833.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "BitXor" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "|" +} \ No newline at end of file diff --git a/corpus/c/bin-op-bit-xor/base.c b/corpus/c/bin-op-bit-xor/base.c new file mode 100644 index 00000000..ec7ea64c --- /dev/null +++ b/corpus/c/bin-op-bit-xor/base.c @@ -0,0 +1 @@ +int x = a ^ b; diff --git a/corpus/c/bin-op-div/1ebec37bea1a.c b/corpus/c/bin-op-div/1ebec37bea1a.c new file mode 100644 index 00000000..66caaf0f --- /dev/null +++ b/corpus/c/bin-op-div/1ebec37bea1a.c @@ -0,0 +1 @@ +int x = a * b; diff --git a/corpus/c/bin-op-div/1ebec37bea1a.mutation.json b/corpus/c/bin-op-div/1ebec37bea1a.mutation.json new file mode 100644 index 00000000..f9510772 --- /dev/null +++ b/corpus/c/bin-op-div/1ebec37bea1a.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "Div" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "*" +} \ No newline at end of file diff --git a/corpus/c/bin-op-div/9a2b5594eff7.c b/corpus/c/bin-op-div/9a2b5594eff7.c new file mode 100644 index 00000000..710efa6c --- /dev/null +++ b/corpus/c/bin-op-div/9a2b5594eff7.c @@ -0,0 +1 @@ +int x = a - b; diff --git a/corpus/c/bin-op-div/9a2b5594eff7.mutation.json b/corpus/c/bin-op-div/9a2b5594eff7.mutation.json new file mode 100644 index 00000000..32016362 --- /dev/null +++ b/corpus/c/bin-op-div/9a2b5594eff7.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "Div" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "-" +} \ No newline at end of file diff --git a/corpus/c/bin-op-div/base.c b/corpus/c/bin-op-div/base.c new file mode 100644 index 00000000..554cf2d8 --- /dev/null +++ b/corpus/c/bin-op-div/base.c @@ -0,0 +1 @@ +int x = a / b; diff --git a/corpus/c/bin-op-eq/6ecf63d32261.c b/corpus/c/bin-op-eq/6ecf63d32261.c new file mode 100644 index 00000000..05367e7f --- /dev/null +++ b/corpus/c/bin-op-eq/6ecf63d32261.c @@ -0,0 +1 @@ +int x = a != b; diff --git a/corpus/c/bin-op-eq/6ecf63d32261.mutation.json b/corpus/c/bin-op-eq/6ecf63d32261.mutation.json new file mode 100644 index 00000000..8fb6abc8 --- /dev/null +++ b/corpus/c/bin-op-eq/6ecf63d32261.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "Eq" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + } + }, + "subst": "!=" +} \ No newline at end of file diff --git a/corpus/c/bin-op-eq/base.c b/corpus/c/bin-op-eq/base.c new file mode 100644 index 00000000..59b7dba7 --- /dev/null +++ b/corpus/c/bin-op-eq/base.c @@ -0,0 +1 @@ +int x = a == b; diff --git a/corpus/c/bin-op-gt/1224cc389fb6.c b/corpus/c/bin-op-gt/1224cc389fb6.c new file mode 100644 index 00000000..f3ff3b4a --- /dev/null +++ b/corpus/c/bin-op-gt/1224cc389fb6.c @@ -0,0 +1 @@ +int x = a <= b; diff --git a/corpus/c/bin-op-gt/1224cc389fb6.mutation.json b/corpus/c/bin-op-gt/1224cc389fb6.mutation.json new file mode 100644 index 00000000..ad637964 --- /dev/null +++ b/corpus/c/bin-op-gt/1224cc389fb6.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "Gt" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "<=" +} \ No newline at end of file diff --git a/corpus/c/bin-op-gt/b289ab23a731.c b/corpus/c/bin-op-gt/b289ab23a731.c new file mode 100644 index 00000000..81a7c619 --- /dev/null +++ b/corpus/c/bin-op-gt/b289ab23a731.c @@ -0,0 +1 @@ +int x = a >= b; diff --git a/corpus/c/bin-op-gt/b289ab23a731.mutation.json b/corpus/c/bin-op-gt/b289ab23a731.mutation.json new file mode 100644 index 00000000..8a220926 --- /dev/null +++ b/corpus/c/bin-op-gt/b289ab23a731.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "Gt" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": ">=" +} \ No newline at end of file diff --git a/corpus/c/bin-op-gt/base.c b/corpus/c/bin-op-gt/base.c new file mode 100644 index 00000000..e20a461f --- /dev/null +++ b/corpus/c/bin-op-gt/base.c @@ -0,0 +1 @@ +int x = a > b; diff --git a/corpus/c/bin-op-gte/041a73d6cf71.c b/corpus/c/bin-op-gte/041a73d6cf71.c new file mode 100644 index 00000000..e20a461f --- /dev/null +++ b/corpus/c/bin-op-gte/041a73d6cf71.c @@ -0,0 +1 @@ +int x = a > b; diff --git a/corpus/c/bin-op-gte/041a73d6cf71.mutation.json b/corpus/c/bin-op-gte/041a73d6cf71.mutation.json new file mode 100644 index 00000000..071ca144 --- /dev/null +++ b/corpus/c/bin-op-gte/041a73d6cf71.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "Gte" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + } + }, + "subst": ">" +} \ No newline at end of file diff --git a/corpus/c/bin-op-gte/base.c b/corpus/c/bin-op-gte/base.c new file mode 100644 index 00000000..81a7c619 --- /dev/null +++ b/corpus/c/bin-op-gte/base.c @@ -0,0 +1 @@ +int x = a >= b; diff --git a/corpus/c/bin-op-gte/d9968df32a2a.c b/corpus/c/bin-op-gte/d9968df32a2a.c new file mode 100644 index 00000000..7533b825 --- /dev/null +++ b/corpus/c/bin-op-gte/d9968df32a2a.c @@ -0,0 +1 @@ +int x = a < b; diff --git a/corpus/c/bin-op-gte/d9968df32a2a.mutation.json b/corpus/c/bin-op-gte/d9968df32a2a.mutation.json new file mode 100644 index 00000000..a78ec420 --- /dev/null +++ b/corpus/c/bin-op-gte/d9968df32a2a.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "Gte" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + } + }, + "subst": "<" +} \ No newline at end of file diff --git a/corpus/c/bin-op-lt/1224cc389fb6.c b/corpus/c/bin-op-lt/1224cc389fb6.c new file mode 100644 index 00000000..f3ff3b4a --- /dev/null +++ b/corpus/c/bin-op-lt/1224cc389fb6.c @@ -0,0 +1 @@ +int x = a <= b; diff --git a/corpus/c/bin-op-lt/1224cc389fb6.mutation.json b/corpus/c/bin-op-lt/1224cc389fb6.mutation.json new file mode 100644 index 00000000..8265f26b --- /dev/null +++ b/corpus/c/bin-op-lt/1224cc389fb6.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "Lt" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "<=" +} \ No newline at end of file diff --git a/corpus/c/bin-op-lt/b289ab23a731.c b/corpus/c/bin-op-lt/b289ab23a731.c new file mode 100644 index 00000000..81a7c619 --- /dev/null +++ b/corpus/c/bin-op-lt/b289ab23a731.c @@ -0,0 +1 @@ +int x = a >= b; diff --git a/corpus/c/bin-op-lt/b289ab23a731.mutation.json b/corpus/c/bin-op-lt/b289ab23a731.mutation.json new file mode 100644 index 00000000..96229788 --- /dev/null +++ b/corpus/c/bin-op-lt/b289ab23a731.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "Lt" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": ">=" +} \ No newline at end of file diff --git a/corpus/c/bin-op-lt/base.c b/corpus/c/bin-op-lt/base.c new file mode 100644 index 00000000..7533b825 --- /dev/null +++ b/corpus/c/bin-op-lt/base.c @@ -0,0 +1 @@ +int x = a < b; diff --git a/corpus/c/bin-op-lte/041a73d6cf71.c b/corpus/c/bin-op-lte/041a73d6cf71.c new file mode 100644 index 00000000..e20a461f --- /dev/null +++ b/corpus/c/bin-op-lte/041a73d6cf71.c @@ -0,0 +1 @@ +int x = a > b; diff --git a/corpus/c/bin-op-lte/041a73d6cf71.mutation.json b/corpus/c/bin-op-lte/041a73d6cf71.mutation.json new file mode 100644 index 00000000..f2303971 --- /dev/null +++ b/corpus/c/bin-op-lte/041a73d6cf71.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "Lte" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + } + }, + "subst": ">" +} \ No newline at end of file diff --git a/corpus/c/bin-op-lte/base.c b/corpus/c/bin-op-lte/base.c new file mode 100644 index 00000000..f3ff3b4a --- /dev/null +++ b/corpus/c/bin-op-lte/base.c @@ -0,0 +1 @@ +int x = a <= b; diff --git a/corpus/c/bin-op-lte/d9968df32a2a.c b/corpus/c/bin-op-lte/d9968df32a2a.c new file mode 100644 index 00000000..7533b825 --- /dev/null +++ b/corpus/c/bin-op-lte/d9968df32a2a.c @@ -0,0 +1 @@ +int x = a < b; diff --git a/corpus/c/bin-op-lte/d9968df32a2a.mutation.json b/corpus/c/bin-op-lte/d9968df32a2a.mutation.json new file mode 100644 index 00000000..e2d35af0 --- /dev/null +++ b/corpus/c/bin-op-lte/d9968df32a2a.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "Lte" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + } + }, + "subst": "<" +} \ No newline at end of file diff --git a/corpus/c/bin-op-mul/71b0e46d51f9.c b/corpus/c/bin-op-mul/71b0e46d51f9.c new file mode 100644 index 00000000..554cf2d8 --- /dev/null +++ b/corpus/c/bin-op-mul/71b0e46d51f9.c @@ -0,0 +1 @@ +int x = a / b; diff --git a/corpus/c/bin-op-mul/71b0e46d51f9.mutation.json b/corpus/c/bin-op-mul/71b0e46d51f9.mutation.json new file mode 100644 index 00000000..eb25452a --- /dev/null +++ b/corpus/c/bin-op-mul/71b0e46d51f9.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "Mul" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "/" +} \ No newline at end of file diff --git a/corpus/c/bin-op-mul/a2959e2eaccd.c b/corpus/c/bin-op-mul/a2959e2eaccd.c new file mode 100644 index 00000000..450786fc --- /dev/null +++ b/corpus/c/bin-op-mul/a2959e2eaccd.c @@ -0,0 +1 @@ +int x = a + b; diff --git a/corpus/c/bin-op-mul/a2959e2eaccd.mutation.json b/corpus/c/bin-op-mul/a2959e2eaccd.mutation.json new file mode 100644 index 00000000..26d77d80 --- /dev/null +++ b/corpus/c/bin-op-mul/a2959e2eaccd.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "Mul" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "+" +} \ No newline at end of file diff --git a/corpus/c/bin-op-mul/base.c b/corpus/c/bin-op-mul/base.c new file mode 100644 index 00000000..66caaf0f --- /dev/null +++ b/corpus/c/bin-op-mul/base.c @@ -0,0 +1 @@ +int x = a * b; diff --git a/corpus/c/bin-op-ne/a10592829ff3.c b/corpus/c/bin-op-ne/a10592829ff3.c new file mode 100644 index 00000000..59b7dba7 --- /dev/null +++ b/corpus/c/bin-op-ne/a10592829ff3.c @@ -0,0 +1 @@ +int x = a == b; diff --git a/corpus/c/bin-op-ne/a10592829ff3.mutation.json b/corpus/c/bin-op-ne/a10592829ff3.mutation.json new file mode 100644 index 00000000..ae0d240c --- /dev/null +++ b/corpus/c/bin-op-ne/a10592829ff3.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "Ne" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + } + }, + "subst": "==" +} \ No newline at end of file diff --git a/corpus/c/bin-op-ne/base.c b/corpus/c/bin-op-ne/base.c new file mode 100644 index 00000000..05367e7f --- /dev/null +++ b/corpus/c/bin-op-ne/base.c @@ -0,0 +1 @@ +int x = a != b; diff --git a/corpus/c/bin-op-or/831144638f3d.c b/corpus/c/bin-op-or/831144638f3d.c new file mode 100644 index 00000000..0486f83f --- /dev/null +++ b/corpus/c/bin-op-or/831144638f3d.c @@ -0,0 +1 @@ +int x = a && b; diff --git a/corpus/c/bin-op-or/831144638f3d.mutation.json b/corpus/c/bin-op-or/831144638f3d.mutation.json new file mode 100644 index 00000000..b8c4b4b6 --- /dev/null +++ b/corpus/c/bin-op-or/831144638f3d.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "Or" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + } + }, + "subst": "&&" +} \ No newline at end of file diff --git a/corpus/c/bin-op-or/base.c b/corpus/c/bin-op-or/base.c new file mode 100644 index 00000000..ce83674e --- /dev/null +++ b/corpus/c/bin-op-or/base.c @@ -0,0 +1 @@ +int x = a || b; diff --git a/corpus/c/bin-op-rem/1ebec37bea1a.c b/corpus/c/bin-op-rem/1ebec37bea1a.c new file mode 100644 index 00000000..66caaf0f --- /dev/null +++ b/corpus/c/bin-op-rem/1ebec37bea1a.c @@ -0,0 +1 @@ +int x = a * b; diff --git a/corpus/c/bin-op-rem/1ebec37bea1a.mutation.json b/corpus/c/bin-op-rem/1ebec37bea1a.mutation.json new file mode 100644 index 00000000..7c5d43b1 --- /dev/null +++ b/corpus/c/bin-op-rem/1ebec37bea1a.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "Rem" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "*" +} \ No newline at end of file diff --git a/corpus/c/bin-op-rem/71b0e46d51f9.c b/corpus/c/bin-op-rem/71b0e46d51f9.c new file mode 100644 index 00000000..554cf2d8 --- /dev/null +++ b/corpus/c/bin-op-rem/71b0e46d51f9.c @@ -0,0 +1 @@ +int x = a / b; diff --git a/corpus/c/bin-op-rem/71b0e46d51f9.mutation.json b/corpus/c/bin-op-rem/71b0e46d51f9.mutation.json new file mode 100644 index 00000000..89c7464d --- /dev/null +++ b/corpus/c/bin-op-rem/71b0e46d51f9.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "Rem" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "/" +} \ No newline at end of file diff --git a/corpus/c/bin-op-rem/base.c b/corpus/c/bin-op-rem/base.c new file mode 100644 index 00000000..aa5af004 --- /dev/null +++ b/corpus/c/bin-op-rem/base.c @@ -0,0 +1 @@ +int x = a % b; diff --git a/corpus/c/bin-op-shl/64b90270bac1.c b/corpus/c/bin-op-shl/64b90270bac1.c new file mode 100644 index 00000000..93a01043 --- /dev/null +++ b/corpus/c/bin-op-shl/64b90270bac1.c @@ -0,0 +1 @@ +int x = a >> b; diff --git a/corpus/c/bin-op-shl/64b90270bac1.mutation.json b/corpus/c/bin-op-shl/64b90270bac1.mutation.json new file mode 100644 index 00000000..0c16877b --- /dev/null +++ b/corpus/c/bin-op-shl/64b90270bac1.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "Shl" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + } + }, + "subst": ">>" +} \ No newline at end of file diff --git a/corpus/c/bin-op-shl/base.c b/corpus/c/bin-op-shl/base.c new file mode 100644 index 00000000..493f7bd7 --- /dev/null +++ b/corpus/c/bin-op-shl/base.c @@ -0,0 +1 @@ +int x = a << b; diff --git a/corpus/c/bin-op-shr/b1921069a365.c b/corpus/c/bin-op-shr/b1921069a365.c new file mode 100644 index 00000000..493f7bd7 --- /dev/null +++ b/corpus/c/bin-op-shr/b1921069a365.c @@ -0,0 +1 @@ +int x = a << b; diff --git a/corpus/c/bin-op-shr/b1921069a365.mutation.json b/corpus/c/bin-op-shr/b1921069a365.mutation.json new file mode 100644 index 00000000..22e4481e --- /dev/null +++ b/corpus/c/bin-op-shr/b1921069a365.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "Shr" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + } + }, + "subst": "<<" +} \ No newline at end of file diff --git a/corpus/c/bin-op-shr/base.c b/corpus/c/bin-op-shr/base.c new file mode 100644 index 00000000..93a01043 --- /dev/null +++ b/corpus/c/bin-op-shr/base.c @@ -0,0 +1 @@ +int x = a >> b; diff --git a/corpus/c/bin-op-sub/71b0e46d51f9.c b/corpus/c/bin-op-sub/71b0e46d51f9.c new file mode 100644 index 00000000..554cf2d8 --- /dev/null +++ b/corpus/c/bin-op-sub/71b0e46d51f9.c @@ -0,0 +1 @@ +int x = a / b; diff --git a/corpus/c/bin-op-sub/71b0e46d51f9.mutation.json b/corpus/c/bin-op-sub/71b0e46d51f9.mutation.json new file mode 100644 index 00000000..fa85e8cc --- /dev/null +++ b/corpus/c/bin-op-sub/71b0e46d51f9.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "Sub" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "/" +} \ No newline at end of file diff --git a/corpus/c/bin-op-sub/a2959e2eaccd.c b/corpus/c/bin-op-sub/a2959e2eaccd.c new file mode 100644 index 00000000..450786fc --- /dev/null +++ b/corpus/c/bin-op-sub/a2959e2eaccd.c @@ -0,0 +1 @@ +int x = a + b; diff --git a/corpus/c/bin-op-sub/a2959e2eaccd.mutation.json b/corpus/c/bin-op-sub/a2959e2eaccd.mutation.json new file mode 100644 index 00000000..13d01c52 --- /dev/null +++ b/corpus/c/bin-op-sub/a2959e2eaccd.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "Sub" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "+" +} \ No newline at end of file diff --git a/corpus/c/bin-op-sub/base.c b/corpus/c/bin-op-sub/base.c new file mode 100644 index 00000000..710efa6c --- /dev/null +++ b/corpus/c/bin-op-sub/base.c @@ -0,0 +1 @@ +int x = a - b; diff --git a/corpus/c/bit-and-assign/0b8fd4b25782.c b/corpus/c/bit-and-assign/0b8fd4b25782.c new file mode 100644 index 00000000..621fcf1a --- /dev/null +++ b/corpus/c/bit-and-assign/0b8fd4b25782.c @@ -0,0 +1 @@ +void f() { x &= -1; } diff --git a/corpus/c/bit-and-assign/0b8fd4b25782.mutation.json b/corpus/c/bit-and-assign/0b8fd4b25782.mutation.json new file mode 100644 index 00000000..116c3005 --- /dev/null +++ b/corpus/c/bit-and-assign/0b8fd4b25782.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/c/bit-and-assign/4002d6526b22.c b/corpus/c/bit-and-assign/4002d6526b22.c new file mode 100644 index 00000000..56757a70 --- /dev/null +++ b/corpus/c/bit-and-assign/4002d6526b22.c @@ -0,0 +1 @@ +void f() {} diff --git a/corpus/c/bit-and-assign/4002d6526b22.mutation.json b/corpus/c/bit-and-assign/4002d6526b22.mutation.json new file mode 100644 index 00000000..0ea8d2e2 --- /dev/null +++ b/corpus/c/bit-and-assign/4002d6526b22.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": "StatementBlock", + "subst_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 20, + "byte": 20 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 20, + "byte": 20 + } + } + }, + "subst": "{}" +} \ No newline at end of file diff --git a/corpus/c/bit-and-assign/6f48fde0b9ec.c b/corpus/c/bit-and-assign/6f48fde0b9ec.c new file mode 100644 index 00000000..ec0ab3a1 --- /dev/null +++ b/corpus/c/bit-and-assign/6f48fde0b9ec.c @@ -0,0 +1 @@ +void f() { x &= 0; } diff --git a/corpus/c/bit-and-assign/6f48fde0b9ec.mutation.json b/corpus/c/bit-and-assign/6f48fde0b9ec.mutation.json new file mode 100644 index 00000000..697762ab --- /dev/null +++ b/corpus/c/bit-and-assign/6f48fde0b9ec.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/c/bit-and-assign/7b1bf8e35242.c b/corpus/c/bit-and-assign/7b1bf8e35242.c new file mode 100644 index 00000000..d627b862 --- /dev/null +++ b/corpus/c/bit-and-assign/7b1bf8e35242.c @@ -0,0 +1 @@ +void f() { x &= 1; } diff --git a/corpus/c/bit-and-assign/7b1bf8e35242.mutation.json b/corpus/c/bit-and-assign/7b1bf8e35242.mutation.json new file mode 100644 index 00000000..a5659b62 --- /dev/null +++ b/corpus/c/bit-and-assign/7b1bf8e35242.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/c/bit-and-assign/852b52007446.c b/corpus/c/bit-and-assign/852b52007446.c new file mode 100644 index 00000000..75f6b237 --- /dev/null +++ b/corpus/c/bit-and-assign/852b52007446.c @@ -0,0 +1 @@ +void f() { x = 1; } diff --git a/corpus/c/bit-and-assign/852b52007446.mutation.json b/corpus/c/bit-and-assign/852b52007446.mutation.json new file mode 100644 index 00000000..e464e28b --- /dev/null +++ b/corpus/c/bit-and-assign/852b52007446.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Assign": "BitAndAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "=" +} \ No newline at end of file diff --git a/corpus/c/bit-and-assign/base.c b/corpus/c/bit-and-assign/base.c new file mode 100644 index 00000000..d627b862 --- /dev/null +++ b/corpus/c/bit-and-assign/base.c @@ -0,0 +1 @@ +void f() { x &= 1; } diff --git a/corpus/c/bit-and-assign/fc03b1eb2780.c b/corpus/c/bit-and-assign/fc03b1eb2780.c new file mode 100644 index 00000000..9ec344e8 --- /dev/null +++ b/corpus/c/bit-and-assign/fc03b1eb2780.c @@ -0,0 +1 @@ +void f() { x |= 1; } diff --git a/corpus/c/bit-and-assign/fc03b1eb2780.mutation.json b/corpus/c/bit-and-assign/fc03b1eb2780.mutation.json new file mode 100644 index 00000000..4426efc1 --- /dev/null +++ b/corpus/c/bit-and-assign/fc03b1eb2780.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Assign": "BitAndAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "|=" +} \ No newline at end of file diff --git a/corpus/c/bit-or-assign/3a5eaa54e075.c b/corpus/c/bit-or-assign/3a5eaa54e075.c new file mode 100644 index 00000000..32ace03a --- /dev/null +++ b/corpus/c/bit-or-assign/3a5eaa54e075.c @@ -0,0 +1 @@ +void f() { x |= -1; } diff --git a/corpus/c/bit-or-assign/3a5eaa54e075.mutation.json b/corpus/c/bit-or-assign/3a5eaa54e075.mutation.json new file mode 100644 index 00000000..116c3005 --- /dev/null +++ b/corpus/c/bit-or-assign/3a5eaa54e075.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/c/bit-or-assign/4002d6526b22.c b/corpus/c/bit-or-assign/4002d6526b22.c new file mode 100644 index 00000000..56757a70 --- /dev/null +++ b/corpus/c/bit-or-assign/4002d6526b22.c @@ -0,0 +1 @@ +void f() {} diff --git a/corpus/c/bit-or-assign/4002d6526b22.mutation.json b/corpus/c/bit-or-assign/4002d6526b22.mutation.json new file mode 100644 index 00000000..0ea8d2e2 --- /dev/null +++ b/corpus/c/bit-or-assign/4002d6526b22.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": "StatementBlock", + "subst_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 20, + "byte": 20 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 20, + "byte": 20 + } + } + }, + "subst": "{}" +} \ No newline at end of file diff --git a/corpus/c/bit-or-assign/7b1bf8e35242.c b/corpus/c/bit-or-assign/7b1bf8e35242.c new file mode 100644 index 00000000..d627b862 --- /dev/null +++ b/corpus/c/bit-or-assign/7b1bf8e35242.c @@ -0,0 +1 @@ +void f() { x &= 1; } diff --git a/corpus/c/bit-or-assign/7b1bf8e35242.mutation.json b/corpus/c/bit-or-assign/7b1bf8e35242.mutation.json new file mode 100644 index 00000000..78366107 --- /dev/null +++ b/corpus/c/bit-or-assign/7b1bf8e35242.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Assign": "BitOrAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "&=" +} \ No newline at end of file diff --git a/corpus/c/bit-or-assign/852b52007446.c b/corpus/c/bit-or-assign/852b52007446.c new file mode 100644 index 00000000..75f6b237 --- /dev/null +++ b/corpus/c/bit-or-assign/852b52007446.c @@ -0,0 +1 @@ +void f() { x = 1; } diff --git a/corpus/c/bit-or-assign/852b52007446.mutation.json b/corpus/c/bit-or-assign/852b52007446.mutation.json new file mode 100644 index 00000000..0a8c15a7 --- /dev/null +++ b/corpus/c/bit-or-assign/852b52007446.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Assign": "BitOrAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "=" +} \ No newline at end of file diff --git a/corpus/c/bit-or-assign/base.c b/corpus/c/bit-or-assign/base.c new file mode 100644 index 00000000..9ec344e8 --- /dev/null +++ b/corpus/c/bit-or-assign/base.c @@ -0,0 +1 @@ +void f() { x |= 1; } diff --git a/corpus/c/bit-or-assign/e0e0fe1c1872.c b/corpus/c/bit-or-assign/e0e0fe1c1872.c new file mode 100644 index 00000000..ff16df20 --- /dev/null +++ b/corpus/c/bit-or-assign/e0e0fe1c1872.c @@ -0,0 +1 @@ +void f() { x |= 0; } diff --git a/corpus/c/bit-or-assign/e0e0fe1c1872.mutation.json b/corpus/c/bit-or-assign/e0e0fe1c1872.mutation.json new file mode 100644 index 00000000..697762ab --- /dev/null +++ b/corpus/c/bit-or-assign/e0e0fe1c1872.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/c/bit-or-assign/fc03b1eb2780.c b/corpus/c/bit-or-assign/fc03b1eb2780.c new file mode 100644 index 00000000..9ec344e8 --- /dev/null +++ b/corpus/c/bit-or-assign/fc03b1eb2780.c @@ -0,0 +1 @@ +void f() { x |= 1; } diff --git a/corpus/c/bit-or-assign/fc03b1eb2780.mutation.json b/corpus/c/bit-or-assign/fc03b1eb2780.mutation.json new file mode 100644 index 00000000..a5659b62 --- /dev/null +++ b/corpus/c/bit-or-assign/fc03b1eb2780.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/c/bit-xor-assign/4002d6526b22.c b/corpus/c/bit-xor-assign/4002d6526b22.c new file mode 100644 index 00000000..56757a70 --- /dev/null +++ b/corpus/c/bit-xor-assign/4002d6526b22.c @@ -0,0 +1 @@ +void f() {} diff --git a/corpus/c/bit-xor-assign/4002d6526b22.mutation.json b/corpus/c/bit-xor-assign/4002d6526b22.mutation.json new file mode 100644 index 00000000..0ea8d2e2 --- /dev/null +++ b/corpus/c/bit-xor-assign/4002d6526b22.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": "StatementBlock", + "subst_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 20, + "byte": 20 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 20, + "byte": 20 + } + } + }, + "subst": "{}" +} \ No newline at end of file diff --git a/corpus/c/bit-xor-assign/7b1bf8e35242.c b/corpus/c/bit-xor-assign/7b1bf8e35242.c new file mode 100644 index 00000000..d627b862 --- /dev/null +++ b/corpus/c/bit-xor-assign/7b1bf8e35242.c @@ -0,0 +1 @@ +void f() { x &= 1; } diff --git a/corpus/c/bit-xor-assign/7b1bf8e35242.mutation.json b/corpus/c/bit-xor-assign/7b1bf8e35242.mutation.json new file mode 100644 index 00000000..0053c813 --- /dev/null +++ b/corpus/c/bit-xor-assign/7b1bf8e35242.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Assign": "BitXorAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "&=" +} \ No newline at end of file diff --git a/corpus/c/bit-xor-assign/852b52007446.c b/corpus/c/bit-xor-assign/852b52007446.c new file mode 100644 index 00000000..75f6b237 --- /dev/null +++ b/corpus/c/bit-xor-assign/852b52007446.c @@ -0,0 +1 @@ +void f() { x = 1; } diff --git a/corpus/c/bit-xor-assign/852b52007446.mutation.json b/corpus/c/bit-xor-assign/852b52007446.mutation.json new file mode 100644 index 00000000..d88bbd6e --- /dev/null +++ b/corpus/c/bit-xor-assign/852b52007446.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Assign": "BitXorAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "=" +} \ No newline at end of file diff --git a/corpus/c/bit-xor-assign/aea99ca35392.c b/corpus/c/bit-xor-assign/aea99ca35392.c new file mode 100644 index 00000000..f2d894d7 --- /dev/null +++ b/corpus/c/bit-xor-assign/aea99ca35392.c @@ -0,0 +1 @@ +void f() { x ^= -1; } diff --git a/corpus/c/bit-xor-assign/aea99ca35392.mutation.json b/corpus/c/bit-xor-assign/aea99ca35392.mutation.json new file mode 100644 index 00000000..116c3005 --- /dev/null +++ b/corpus/c/bit-xor-assign/aea99ca35392.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/c/bit-xor-assign/base.c b/corpus/c/bit-xor-assign/base.c new file mode 100644 index 00000000..1a507308 --- /dev/null +++ b/corpus/c/bit-xor-assign/base.c @@ -0,0 +1 @@ +void f() { x ^= 1; } diff --git a/corpus/c/bit-xor-assign/e01cf671a679.c b/corpus/c/bit-xor-assign/e01cf671a679.c new file mode 100644 index 00000000..dd0a382a --- /dev/null +++ b/corpus/c/bit-xor-assign/e01cf671a679.c @@ -0,0 +1 @@ +void f() { x ^= 0; } diff --git a/corpus/c/bit-xor-assign/e01cf671a679.mutation.json b/corpus/c/bit-xor-assign/e01cf671a679.mutation.json new file mode 100644 index 00000000..697762ab --- /dev/null +++ b/corpus/c/bit-xor-assign/e01cf671a679.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/c/bit-xor-assign/fff9d4b5767d.c b/corpus/c/bit-xor-assign/fff9d4b5767d.c new file mode 100644 index 00000000..1a507308 --- /dev/null +++ b/corpus/c/bit-xor-assign/fff9d4b5767d.c @@ -0,0 +1 @@ +void f() { x ^= 1; } diff --git a/corpus/c/bit-xor-assign/fff9d4b5767d.mutation.json b/corpus/c/bit-xor-assign/fff9d4b5767d.mutation.json new file mode 100644 index 00000000..a5659b62 --- /dev/null +++ b/corpus/c/bit-xor-assign/fff9d4b5767d.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/c/condition-for/2047a1144af4.c b/corpus/c/condition-for/2047a1144af4.c new file mode 100644 index 00000000..35c14386 --- /dev/null +++ b/corpus/c/condition-for/2047a1144af4.c @@ -0,0 +1 @@ +void f() { for (int i = 0; i < 10; i++) {} } diff --git a/corpus/c/condition-for/2047a1144af4.mutation.json b/corpus/c/condition-for/2047a1144af4.mutation.json new file mode 100644 index 00000000..9393c3f8 --- /dev/null +++ b/corpus/c/condition-for/2047a1144af4.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": "StatementBlock", + "subst_span": { + "start": { + "line": 0, + "col": 40, + "byte": 40 + }, + "end": { + "line": 0, + "col": 43, + "byte": 43 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 40, + "byte": 40 + }, + "end": { + "line": 0, + "col": 43, + "byte": 43 + } + } + }, + "subst": "{}" +} \ No newline at end of file diff --git a/corpus/c/condition-for/4002d6526b22.c b/corpus/c/condition-for/4002d6526b22.c new file mode 100644 index 00000000..56757a70 --- /dev/null +++ b/corpus/c/condition-for/4002d6526b22.c @@ -0,0 +1 @@ +void f() {} diff --git a/corpus/c/condition-for/4002d6526b22.mutation.json b/corpus/c/condition-for/4002d6526b22.mutation.json new file mode 100644 index 00000000..d4c141dc --- /dev/null +++ b/corpus/c/condition-for/4002d6526b22.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": "StatementBlock", + "subst_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 45, + "byte": 45 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 45, + "byte": 45 + } + } + }, + "subst": "{}" +} \ No newline at end of file diff --git a/corpus/c/condition-for/4e49b7702f88.c b/corpus/c/condition-for/4e49b7702f88.c new file mode 100644 index 00000000..8b5e6ef8 --- /dev/null +++ b/corpus/c/condition-for/4e49b7702f88.c @@ -0,0 +1 @@ +void f() { for (int i = 0; i < 1; i++) { } } diff --git a/corpus/c/condition-for/4e49b7702f88.mutation.json b/corpus/c/condition-for/4e49b7702f88.mutation.json new file mode 100644 index 00000000..6d580ebb --- /dev/null +++ b/corpus/c/condition-for/4e49b7702f88.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 31, + "byte": 31 + }, + "end": { + "line": 0, + "col": 33, + "byte": 33 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 31, + "byte": 31 + }, + "end": { + "line": 0, + "col": 33, + "byte": 33 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/c/condition-for/664718862d11.c b/corpus/c/condition-for/664718862d11.c new file mode 100644 index 00000000..ad0042ae --- /dev/null +++ b/corpus/c/condition-for/664718862d11.c @@ -0,0 +1 @@ +void f() { for (int i = 0; i < 10; i++) { } } diff --git a/corpus/c/condition-for/664718862d11.mutation.json b/corpus/c/condition-for/664718862d11.mutation.json new file mode 100644 index 00000000..9a6beda0 --- /dev/null +++ b/corpus/c/condition-for/664718862d11.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 24, + "byte": 24 + }, + "end": { + "line": 0, + "col": 25, + "byte": 25 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 24, + "byte": 24 + }, + "end": { + "line": 0, + "col": 25, + "byte": 25 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/c/condition-for/6d47ca8662e4.c b/corpus/c/condition-for/6d47ca8662e4.c new file mode 100644 index 00000000..834366ab --- /dev/null +++ b/corpus/c/condition-for/6d47ca8662e4.c @@ -0,0 +1 @@ +void f() { for (int i = 0; i < -1; i++) { } } diff --git a/corpus/c/condition-for/6d47ca8662e4.mutation.json b/corpus/c/condition-for/6d47ca8662e4.mutation.json new file mode 100644 index 00000000..cddc5184 --- /dev/null +++ b/corpus/c/condition-for/6d47ca8662e4.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 31, + "byte": 31 + }, + "end": { + "line": 0, + "col": 33, + "byte": 33 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 31, + "byte": 31 + }, + "end": { + "line": 0, + "col": 33, + "byte": 33 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/c/condition-for/72556b65cb46.c b/corpus/c/condition-for/72556b65cb46.c new file mode 100644 index 00000000..a4cf94d6 --- /dev/null +++ b/corpus/c/condition-for/72556b65cb46.c @@ -0,0 +1 @@ +void f() { for (int i = 0; 1; i++) { } } diff --git a/corpus/c/condition-for/72556b65cb46.mutation.json b/corpus/c/condition-for/72556b65cb46.mutation.json new file mode 100644 index 00000000..1f6a3b24 --- /dev/null +++ b/corpus/c/condition-for/72556b65cb46.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": "Condition", + "subst_span": { + "start": { + "line": 0, + "col": 27, + "byte": 27 + }, + "end": { + "line": 0, + "col": 33, + "byte": 33 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 43, + "byte": 43 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/c/condition-for/7db67eb53e52.c b/corpus/c/condition-for/7db67eb53e52.c new file mode 100644 index 00000000..714f0621 --- /dev/null +++ b/corpus/c/condition-for/7db67eb53e52.c @@ -0,0 +1 @@ +void f() { for (int i = 0; i >= 10; i++) { } } diff --git a/corpus/c/condition-for/7db67eb53e52.mutation.json b/corpus/c/condition-for/7db67eb53e52.mutation.json new file mode 100644 index 00000000..8489d344 --- /dev/null +++ b/corpus/c/condition-for/7db67eb53e52.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "Lt" + }, + "subst_span": { + "start": { + "line": 0, + "col": 29, + "byte": 29 + }, + "end": { + "line": 0, + "col": 30, + "byte": 30 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 27, + "byte": 27 + }, + "end": { + "line": 0, + "col": 33, + "byte": 33 + } + } + }, + "subst": ">=" +} \ No newline at end of file diff --git a/corpus/c/condition-for/b389ac5cbabe.c b/corpus/c/condition-for/b389ac5cbabe.c new file mode 100644 index 00000000..26a9d374 --- /dev/null +++ b/corpus/c/condition-for/b389ac5cbabe.c @@ -0,0 +1 @@ +void f() { for (int i = 0; i <= 10; i++) { } } diff --git a/corpus/c/condition-for/b389ac5cbabe.mutation.json b/corpus/c/condition-for/b389ac5cbabe.mutation.json new file mode 100644 index 00000000..ddb2dcc0 --- /dev/null +++ b/corpus/c/condition-for/b389ac5cbabe.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "BinaryOp": "Lt" + }, + "subst_span": { + "start": { + "line": 0, + "col": 29, + "byte": 29 + }, + "end": { + "line": 0, + "col": 30, + "byte": 30 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 27, + "byte": 27 + }, + "end": { + "line": 0, + "col": 33, + "byte": 33 + } + } + }, + "subst": "<=" +} \ No newline at end of file diff --git a/corpus/c/condition-for/base.c b/corpus/c/condition-for/base.c new file mode 100644 index 00000000..ad0042ae --- /dev/null +++ b/corpus/c/condition-for/base.c @@ -0,0 +1 @@ +void f() { for (int i = 0; i < 10; i++) { } } diff --git a/corpus/c/condition-for/d0190dc467b8.c b/corpus/c/condition-for/d0190dc467b8.c new file mode 100644 index 00000000..45be5d57 --- /dev/null +++ b/corpus/c/condition-for/d0190dc467b8.c @@ -0,0 +1 @@ +void f() { for (int i = 0; 0; i++) { } } diff --git a/corpus/c/condition-for/d0190dc467b8.mutation.json b/corpus/c/condition-for/d0190dc467b8.mutation.json new file mode 100644 index 00000000..9381d0dc --- /dev/null +++ b/corpus/c/condition-for/d0190dc467b8.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": "Condition", + "subst_span": { + "start": { + "line": 0, + "col": 27, + "byte": 27 + }, + "end": { + "line": 0, + "col": 33, + "byte": 33 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 43, + "byte": 43 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/c/condition-for/d5c9569bed51.c b/corpus/c/condition-for/d5c9569bed51.c new file mode 100644 index 00000000..c8dccf6a --- /dev/null +++ b/corpus/c/condition-for/d5c9569bed51.c @@ -0,0 +1 @@ +void f() { for (int i = 1; i < 10; i++) { } } diff --git a/corpus/c/condition-for/d5c9569bed51.mutation.json b/corpus/c/condition-for/d5c9569bed51.mutation.json new file mode 100644 index 00000000..25d5a1b8 --- /dev/null +++ b/corpus/c/condition-for/d5c9569bed51.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 24, + "byte": 24 + }, + "end": { + "line": 0, + "col": 25, + "byte": 25 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 24, + "byte": 24 + }, + "end": { + "line": 0, + "col": 25, + "byte": 25 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/c/condition-for/e167b796caaa.c b/corpus/c/condition-for/e167b796caaa.c new file mode 100644 index 00000000..beedd4c4 --- /dev/null +++ b/corpus/c/condition-for/e167b796caaa.c @@ -0,0 +1 @@ +void f() { for (int i = -1; i < 10; i++) { } } diff --git a/corpus/c/condition-for/e167b796caaa.mutation.json b/corpus/c/condition-for/e167b796caaa.mutation.json new file mode 100644 index 00000000..af5b121d --- /dev/null +++ b/corpus/c/condition-for/e167b796caaa.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 24, + "byte": 24 + }, + "end": { + "line": 0, + "col": 25, + "byte": 25 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 24, + "byte": 24 + }, + "end": { + "line": 0, + "col": 25, + "byte": 25 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/c/condition-for/f4680ae00c0a.c b/corpus/c/condition-for/f4680ae00c0a.c new file mode 100644 index 00000000..7851b296 --- /dev/null +++ b/corpus/c/condition-for/f4680ae00c0a.c @@ -0,0 +1 @@ +void f() { for (int i = 0; i < 0; i++) { } } diff --git a/corpus/c/condition-for/f4680ae00c0a.mutation.json b/corpus/c/condition-for/f4680ae00c0a.mutation.json new file mode 100644 index 00000000..661a7be4 --- /dev/null +++ b/corpus/c/condition-for/f4680ae00c0a.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 31, + "byte": 31 + }, + "end": { + "line": 0, + "col": 33, + "byte": 33 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 31, + "byte": 31 + }, + "end": { + "line": 0, + "col": 33, + "byte": 33 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/c/condition-while/4002d6526b22.c b/corpus/c/condition-while/4002d6526b22.c new file mode 100644 index 00000000..56757a70 --- /dev/null +++ b/corpus/c/condition-while/4002d6526b22.c @@ -0,0 +1 @@ +void f() {} diff --git a/corpus/c/condition-while/4002d6526b22.mutation.json b/corpus/c/condition-while/4002d6526b22.mutation.json new file mode 100644 index 00000000..19211e58 --- /dev/null +++ b/corpus/c/condition-while/4002d6526b22.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": "StatementBlock", + "subst_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 33, + "byte": 33 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 33, + "byte": 33 + } + } + }, + "subst": "{}" +} \ No newline at end of file diff --git a/corpus/c/condition-while/4cce3919b553.c b/corpus/c/condition-while/4cce3919b553.c new file mode 100644 index 00000000..a3817d11 --- /dev/null +++ b/corpus/c/condition-while/4cce3919b553.c @@ -0,0 +1 @@ +void f() { while (0) { break; } } diff --git a/corpus/c/condition-while/4cce3919b553.mutation.json b/corpus/c/condition-while/4cce3919b553.mutation.json new file mode 100644 index 00000000..896fc75d --- /dev/null +++ b/corpus/c/condition-while/4cce3919b553.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": "Condition", + "subst_span": { + "start": { + "line": 0, + "col": 18, + "byte": 18 + }, + "end": { + "line": 0, + "col": 19, + "byte": 19 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 31, + "byte": 31 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/c/condition-while/bae2c24551b5.c b/corpus/c/condition-while/bae2c24551b5.c new file mode 100644 index 00000000..0565e52f --- /dev/null +++ b/corpus/c/condition-while/bae2c24551b5.c @@ -0,0 +1 @@ +void f() { while (x) {} } diff --git a/corpus/c/condition-while/bae2c24551b5.mutation.json b/corpus/c/condition-while/bae2c24551b5.mutation.json new file mode 100644 index 00000000..8a15132c --- /dev/null +++ b/corpus/c/condition-while/bae2c24551b5.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": "StatementBlock", + "subst_span": { + "start": { + "line": 0, + "col": 21, + "byte": 21 + }, + "end": { + "line": 0, + "col": 31, + "byte": 31 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 21, + "byte": 21 + }, + "end": { + "line": 0, + "col": 31, + "byte": 31 + } + } + }, + "subst": "{}" +} \ No newline at end of file diff --git a/corpus/c/condition-while/base.c b/corpus/c/condition-while/base.c new file mode 100644 index 00000000..6a14a736 --- /dev/null +++ b/corpus/c/condition-while/base.c @@ -0,0 +1 @@ +void f() { while (x) { break; } } diff --git a/corpus/c/condition-while/d04073eb4012.c b/corpus/c/condition-while/d04073eb4012.c new file mode 100644 index 00000000..df6a4afb --- /dev/null +++ b/corpus/c/condition-while/d04073eb4012.c @@ -0,0 +1 @@ +void f() { while (1) { break; } } diff --git a/corpus/c/condition-while/d04073eb4012.mutation.json b/corpus/c/condition-while/d04073eb4012.mutation.json new file mode 100644 index 00000000..8ce298b6 --- /dev/null +++ b/corpus/c/condition-while/d04073eb4012.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": "Condition", + "subst_span": { + "start": { + "line": 0, + "col": 18, + "byte": 18 + }, + "end": { + "line": 0, + "col": 19, + "byte": 19 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 31, + "byte": 31 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/c/condition/10266f3acbfc.c b/corpus/c/condition/10266f3acbfc.c new file mode 100644 index 00000000..aa40c856 --- /dev/null +++ b/corpus/c/condition/10266f3acbfc.c @@ -0,0 +1 @@ +void f() { if (0) { return; } } diff --git a/corpus/c/condition/10266f3acbfc.mutation.json b/corpus/c/condition/10266f3acbfc.mutation.json new file mode 100644 index 00000000..10025bae --- /dev/null +++ b/corpus/c/condition/10266f3acbfc.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": "Condition", + "subst_span": { + "start": { + "line": 0, + "col": 15, + "byte": 15 + }, + "end": { + "line": 0, + "col": 16, + "byte": 16 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 29, + "byte": 29 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/c/condition/4002d6526b22.c b/corpus/c/condition/4002d6526b22.c new file mode 100644 index 00000000..56757a70 --- /dev/null +++ b/corpus/c/condition/4002d6526b22.c @@ -0,0 +1 @@ +void f() {} diff --git a/corpus/c/condition/4002d6526b22.mutation.json b/corpus/c/condition/4002d6526b22.mutation.json new file mode 100644 index 00000000..db64f46f --- /dev/null +++ b/corpus/c/condition/4002d6526b22.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": "StatementBlock", + "subst_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 31, + "byte": 31 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 31, + "byte": 31 + } + } + }, + "subst": "{}" +} \ No newline at end of file diff --git a/corpus/c/condition/base.c b/corpus/c/condition/base.c new file mode 100644 index 00000000..753e994f --- /dev/null +++ b/corpus/c/condition/base.c @@ -0,0 +1 @@ +void f() { if (x) { return; } } diff --git a/corpus/c/condition/bba0c35bbd5e.c b/corpus/c/condition/bba0c35bbd5e.c new file mode 100644 index 00000000..d75839ca --- /dev/null +++ b/corpus/c/condition/bba0c35bbd5e.c @@ -0,0 +1 @@ +void f() { if (x) {} } diff --git a/corpus/c/condition/bba0c35bbd5e.mutation.json b/corpus/c/condition/bba0c35bbd5e.mutation.json new file mode 100644 index 00000000..e258e489 --- /dev/null +++ b/corpus/c/condition/bba0c35bbd5e.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": "StatementBlock", + "subst_span": { + "start": { + "line": 0, + "col": 18, + "byte": 18 + }, + "end": { + "line": 0, + "col": 29, + "byte": 29 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 18, + "byte": 18 + }, + "end": { + "line": 0, + "col": 29, + "byte": 29 + } + } + }, + "subst": "{}" +} \ No newline at end of file diff --git a/corpus/c/condition/e55208d1d7ca.c b/corpus/c/condition/e55208d1d7ca.c new file mode 100644 index 00000000..b4916316 --- /dev/null +++ b/corpus/c/condition/e55208d1d7ca.c @@ -0,0 +1 @@ +void f() { if (1) { return; } } diff --git a/corpus/c/condition/e55208d1d7ca.mutation.json b/corpus/c/condition/e55208d1d7ca.mutation.json new file mode 100644 index 00000000..553355a5 --- /dev/null +++ b/corpus/c/condition/e55208d1d7ca.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": "Condition", + "subst_span": { + "start": { + "line": 0, + "col": 15, + "byte": 15 + }, + "end": { + "line": 0, + "col": 16, + "byte": 16 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 29, + "byte": 29 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/c/div-assign/4002d6526b22.c b/corpus/c/div-assign/4002d6526b22.c new file mode 100644 index 00000000..56757a70 --- /dev/null +++ b/corpus/c/div-assign/4002d6526b22.c @@ -0,0 +1 @@ +void f() {} diff --git a/corpus/c/div-assign/4002d6526b22.mutation.json b/corpus/c/div-assign/4002d6526b22.mutation.json new file mode 100644 index 00000000..0ea8d2e2 --- /dev/null +++ b/corpus/c/div-assign/4002d6526b22.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": "StatementBlock", + "subst_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 20, + "byte": 20 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 20, + "byte": 20 + } + } + }, + "subst": "{}" +} \ No newline at end of file diff --git a/corpus/c/div-assign/42e00b4ccbca.c b/corpus/c/div-assign/42e00b4ccbca.c new file mode 100644 index 00000000..d6ac603e --- /dev/null +++ b/corpus/c/div-assign/42e00b4ccbca.c @@ -0,0 +1 @@ +void f() { x /= 0; } diff --git a/corpus/c/div-assign/42e00b4ccbca.mutation.json b/corpus/c/div-assign/42e00b4ccbca.mutation.json new file mode 100644 index 00000000..697762ab --- /dev/null +++ b/corpus/c/div-assign/42e00b4ccbca.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/c/div-assign/4e6d06412777.c b/corpus/c/div-assign/4e6d06412777.c new file mode 100644 index 00000000..bea0ea14 --- /dev/null +++ b/corpus/c/div-assign/4e6d06412777.c @@ -0,0 +1 @@ +void f() { x /= 1; } diff --git a/corpus/c/div-assign/4e6d06412777.mutation.json b/corpus/c/div-assign/4e6d06412777.mutation.json new file mode 100644 index 00000000..a5659b62 --- /dev/null +++ b/corpus/c/div-assign/4e6d06412777.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/c/div-assign/852b52007446.c b/corpus/c/div-assign/852b52007446.c new file mode 100644 index 00000000..75f6b237 --- /dev/null +++ b/corpus/c/div-assign/852b52007446.c @@ -0,0 +1 @@ +void f() { x = 1; } diff --git a/corpus/c/div-assign/852b52007446.mutation.json b/corpus/c/div-assign/852b52007446.mutation.json new file mode 100644 index 00000000..825d04dd --- /dev/null +++ b/corpus/c/div-assign/852b52007446.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Assign": "DivAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "=" +} \ No newline at end of file diff --git a/corpus/c/div-assign/8c883acceca7.c b/corpus/c/div-assign/8c883acceca7.c new file mode 100644 index 00000000..985dc590 --- /dev/null +++ b/corpus/c/div-assign/8c883acceca7.c @@ -0,0 +1 @@ +void f() { x *= 1; } diff --git a/corpus/c/div-assign/8c883acceca7.mutation.json b/corpus/c/div-assign/8c883acceca7.mutation.json new file mode 100644 index 00000000..c7bd4251 --- /dev/null +++ b/corpus/c/div-assign/8c883acceca7.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Assign": "DivAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "*=" +} \ No newline at end of file diff --git a/corpus/c/div-assign/906b27016331.c b/corpus/c/div-assign/906b27016331.c new file mode 100644 index 00000000..e36de02c --- /dev/null +++ b/corpus/c/div-assign/906b27016331.c @@ -0,0 +1 @@ +void f() { x /= -1; } diff --git a/corpus/c/div-assign/906b27016331.mutation.json b/corpus/c/div-assign/906b27016331.mutation.json new file mode 100644 index 00000000..116c3005 --- /dev/null +++ b/corpus/c/div-assign/906b27016331.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/c/div-assign/base.c b/corpus/c/div-assign/base.c new file mode 100644 index 00000000..bea0ea14 --- /dev/null +++ b/corpus/c/div-assign/base.c @@ -0,0 +1 @@ +void f() { x /= 1; } diff --git a/corpus/c/literal-number/402648481771.c b/corpus/c/literal-number/402648481771.c new file mode 100644 index 00000000..06ae75f3 --- /dev/null +++ b/corpus/c/literal-number/402648481771.c @@ -0,0 +1 @@ +int x = -1; diff --git a/corpus/c/literal-number/402648481771.mutation.json b/corpus/c/literal-number/402648481771.mutation.json new file mode 100644 index 00000000..55ac2ee7 --- /dev/null +++ b/corpus/c/literal-number/402648481771.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 10, + "byte": 10 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 10, + "byte": 10 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/c/literal-number/5c65ddf28533.c b/corpus/c/literal-number/5c65ddf28533.c new file mode 100644 index 00000000..15bfa8f0 --- /dev/null +++ b/corpus/c/literal-number/5c65ddf28533.c @@ -0,0 +1 @@ +int x = 0; diff --git a/corpus/c/literal-number/5c65ddf28533.mutation.json b/corpus/c/literal-number/5c65ddf28533.mutation.json new file mode 100644 index 00000000..32c326b4 --- /dev/null +++ b/corpus/c/literal-number/5c65ddf28533.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 10, + "byte": 10 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 10, + "byte": 10 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/c/literal-number/996137ced835.c b/corpus/c/literal-number/996137ced835.c new file mode 100644 index 00000000..becfe27c --- /dev/null +++ b/corpus/c/literal-number/996137ced835.c @@ -0,0 +1 @@ +int x = 1; diff --git a/corpus/c/literal-number/996137ced835.mutation.json b/corpus/c/literal-number/996137ced835.mutation.json new file mode 100644 index 00000000..e4be2648 --- /dev/null +++ b/corpus/c/literal-number/996137ced835.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 10, + "byte": 10 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 10, + "byte": 10 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/c/literal-number/base.c b/corpus/c/literal-number/base.c new file mode 100644 index 00000000..642ca52e --- /dev/null +++ b/corpus/c/literal-number/base.c @@ -0,0 +1 @@ +int x = 42; diff --git a/corpus/c/literal-string-empty/base.c b/corpus/c/literal-string-empty/base.c new file mode 100644 index 00000000..baa53e66 --- /dev/null +++ b/corpus/c/literal-string-empty/base.c @@ -0,0 +1 @@ +char *s = ""; diff --git a/corpus/c/literal-string-empty/f7e9a640dcfe.c b/corpus/c/literal-string-empty/f7e9a640dcfe.c new file mode 100644 index 00000000..53e5025c --- /dev/null +++ b/corpus/c/literal-string-empty/f7e9a640dcfe.c @@ -0,0 +1 @@ +char *s = "bough"; diff --git a/corpus/c/literal-string-empty/f7e9a640dcfe.mutation.json b/corpus/c/literal-string-empty/f7e9a640dcfe.mutation.json new file mode 100644 index 00000000..ebffb82e --- /dev/null +++ b/corpus/c/literal-string-empty/f7e9a640dcfe.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "EmptyString" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + } + }, + "subst": "\"bough\"" +} \ No newline at end of file diff --git a/corpus/c/literal-string/base.c b/corpus/c/literal-string/base.c new file mode 100644 index 00000000..c23d8a24 --- /dev/null +++ b/corpus/c/literal-string/base.c @@ -0,0 +1 @@ +char *s = "hello"; diff --git a/corpus/c/literal-string/f2bad2df41b1.c b/corpus/c/literal-string/f2bad2df41b1.c new file mode 100644 index 00000000..baa53e66 --- /dev/null +++ b/corpus/c/literal-string/f2bad2df41b1.c @@ -0,0 +1 @@ +char *s = ""; diff --git a/corpus/c/literal-string/f2bad2df41b1.mutation.json b/corpus/c/literal-string/f2bad2df41b1.mutation.json new file mode 100644 index 00000000..352d0a60 --- /dev/null +++ b/corpus/c/literal-string/f2bad2df41b1.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "String" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "\"\"" +} \ No newline at end of file diff --git a/corpus/c/mul-assign/4002d6526b22.c b/corpus/c/mul-assign/4002d6526b22.c new file mode 100644 index 00000000..56757a70 --- /dev/null +++ b/corpus/c/mul-assign/4002d6526b22.c @@ -0,0 +1 @@ +void f() {} diff --git a/corpus/c/mul-assign/4002d6526b22.mutation.json b/corpus/c/mul-assign/4002d6526b22.mutation.json new file mode 100644 index 00000000..0ea8d2e2 --- /dev/null +++ b/corpus/c/mul-assign/4002d6526b22.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": "StatementBlock", + "subst_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 20, + "byte": 20 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 20, + "byte": 20 + } + } + }, + "subst": "{}" +} \ No newline at end of file diff --git a/corpus/c/mul-assign/4e6d06412777.c b/corpus/c/mul-assign/4e6d06412777.c new file mode 100644 index 00000000..bea0ea14 --- /dev/null +++ b/corpus/c/mul-assign/4e6d06412777.c @@ -0,0 +1 @@ +void f() { x /= 1; } diff --git a/corpus/c/mul-assign/4e6d06412777.mutation.json b/corpus/c/mul-assign/4e6d06412777.mutation.json new file mode 100644 index 00000000..096ff347 --- /dev/null +++ b/corpus/c/mul-assign/4e6d06412777.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Assign": "MulAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "/=" +} \ No newline at end of file diff --git a/corpus/c/mul-assign/852b52007446.c b/corpus/c/mul-assign/852b52007446.c new file mode 100644 index 00000000..75f6b237 --- /dev/null +++ b/corpus/c/mul-assign/852b52007446.c @@ -0,0 +1 @@ +void f() { x = 1; } diff --git a/corpus/c/mul-assign/852b52007446.mutation.json b/corpus/c/mul-assign/852b52007446.mutation.json new file mode 100644 index 00000000..84bfc3f7 --- /dev/null +++ b/corpus/c/mul-assign/852b52007446.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Assign": "MulAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "=" +} \ No newline at end of file diff --git a/corpus/c/mul-assign/8c883acceca7.c b/corpus/c/mul-assign/8c883acceca7.c new file mode 100644 index 00000000..985dc590 --- /dev/null +++ b/corpus/c/mul-assign/8c883acceca7.c @@ -0,0 +1 @@ +void f() { x *= 1; } diff --git a/corpus/c/mul-assign/8c883acceca7.mutation.json b/corpus/c/mul-assign/8c883acceca7.mutation.json new file mode 100644 index 00000000..a5659b62 --- /dev/null +++ b/corpus/c/mul-assign/8c883acceca7.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/c/mul-assign/b052dd1ce213.c b/corpus/c/mul-assign/b052dd1ce213.c new file mode 100644 index 00000000..154b0bcb --- /dev/null +++ b/corpus/c/mul-assign/b052dd1ce213.c @@ -0,0 +1 @@ +void f() { x *= 0; } diff --git a/corpus/c/mul-assign/b052dd1ce213.mutation.json b/corpus/c/mul-assign/b052dd1ce213.mutation.json new file mode 100644 index 00000000..697762ab --- /dev/null +++ b/corpus/c/mul-assign/b052dd1ce213.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/c/mul-assign/base.c b/corpus/c/mul-assign/base.c new file mode 100644 index 00000000..985dc590 --- /dev/null +++ b/corpus/c/mul-assign/base.c @@ -0,0 +1 @@ +void f() { x *= 1; } diff --git a/corpus/c/mul-assign/bc23ee85bd14.c b/corpus/c/mul-assign/bc23ee85bd14.c new file mode 100644 index 00000000..8c7b2ce0 --- /dev/null +++ b/corpus/c/mul-assign/bc23ee85bd14.c @@ -0,0 +1 @@ +void f() { x *= -1; } diff --git a/corpus/c/mul-assign/bc23ee85bd14.mutation.json b/corpus/c/mul-assign/bc23ee85bd14.mutation.json new file mode 100644 index 00000000..116c3005 --- /dev/null +++ b/corpus/c/mul-assign/bc23ee85bd14.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/c/normal-assign/134d66e48d93.c b/corpus/c/normal-assign/134d66e48d93.c new file mode 100644 index 00000000..af219c6c --- /dev/null +++ b/corpus/c/normal-assign/134d66e48d93.c @@ -0,0 +1 @@ +void f() { x = -1; } diff --git a/corpus/c/normal-assign/134d66e48d93.mutation.json b/corpus/c/normal-assign/134d66e48d93.mutation.json new file mode 100644 index 00000000..e7dd9153 --- /dev/null +++ b/corpus/c/normal-assign/134d66e48d93.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 15, + "byte": 15 + }, + "end": { + "line": 0, + "col": 16, + "byte": 16 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 15, + "byte": 15 + }, + "end": { + "line": 0, + "col": 16, + "byte": 16 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/c/normal-assign/4002d6526b22.c b/corpus/c/normal-assign/4002d6526b22.c new file mode 100644 index 00000000..56757a70 --- /dev/null +++ b/corpus/c/normal-assign/4002d6526b22.c @@ -0,0 +1 @@ +void f() {} diff --git a/corpus/c/normal-assign/4002d6526b22.mutation.json b/corpus/c/normal-assign/4002d6526b22.mutation.json new file mode 100644 index 00000000..ff5b37ac --- /dev/null +++ b/corpus/c/normal-assign/4002d6526b22.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": "StatementBlock", + "subst_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 19, + "byte": 19 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 19, + "byte": 19 + } + } + }, + "subst": "{}" +} \ No newline at end of file diff --git a/corpus/c/normal-assign/43320cc23b42.c b/corpus/c/normal-assign/43320cc23b42.c new file mode 100644 index 00000000..b24dfa0b --- /dev/null +++ b/corpus/c/normal-assign/43320cc23b42.c @@ -0,0 +1 @@ +void f() { x = 0; } diff --git a/corpus/c/normal-assign/43320cc23b42.mutation.json b/corpus/c/normal-assign/43320cc23b42.mutation.json new file mode 100644 index 00000000..3335cc5b --- /dev/null +++ b/corpus/c/normal-assign/43320cc23b42.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 15, + "byte": 15 + }, + "end": { + "line": 0, + "col": 16, + "byte": 16 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 15, + "byte": 15 + }, + "end": { + "line": 0, + "col": 16, + "byte": 16 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/c/normal-assign/43b73202da01.c b/corpus/c/normal-assign/43b73202da01.c new file mode 100644 index 00000000..89389f73 --- /dev/null +++ b/corpus/c/normal-assign/43b73202da01.c @@ -0,0 +1 @@ +void f() { x += 1; } diff --git a/corpus/c/normal-assign/43b73202da01.mutation.json b/corpus/c/normal-assign/43b73202da01.mutation.json new file mode 100644 index 00000000..2c504ffd --- /dev/null +++ b/corpus/c/normal-assign/43b73202da01.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Assign": "NormalAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 16, + "byte": 16 + } + } + }, + "subst": "+=" +} \ No newline at end of file diff --git a/corpus/c/normal-assign/852b52007446.c b/corpus/c/normal-assign/852b52007446.c new file mode 100644 index 00000000..75f6b237 --- /dev/null +++ b/corpus/c/normal-assign/852b52007446.c @@ -0,0 +1 @@ +void f() { x = 1; } diff --git a/corpus/c/normal-assign/852b52007446.mutation.json b/corpus/c/normal-assign/852b52007446.mutation.json new file mode 100644 index 00000000..a4a3bbb4 --- /dev/null +++ b/corpus/c/normal-assign/852b52007446.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 15, + "byte": 15 + }, + "end": { + "line": 0, + "col": 16, + "byte": 16 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 15, + "byte": 15 + }, + "end": { + "line": 0, + "col": 16, + "byte": 16 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/c/normal-assign/base.c b/corpus/c/normal-assign/base.c new file mode 100644 index 00000000..75f6b237 --- /dev/null +++ b/corpus/c/normal-assign/base.c @@ -0,0 +1 @@ +void f() { x = 1; } diff --git a/corpus/c/normal-assign/faf1f85e307e.c b/corpus/c/normal-assign/faf1f85e307e.c new file mode 100644 index 00000000..dfcceea3 --- /dev/null +++ b/corpus/c/normal-assign/faf1f85e307e.c @@ -0,0 +1 @@ +void f() { x -= 1; } diff --git a/corpus/c/normal-assign/faf1f85e307e.mutation.json b/corpus/c/normal-assign/faf1f85e307e.mutation.json new file mode 100644 index 00000000..d5b2dc22 --- /dev/null +++ b/corpus/c/normal-assign/faf1f85e307e.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Assign": "NormalAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 16, + "byte": 16 + } + } + }, + "subst": "-=" +} \ No newline at end of file diff --git a/corpus/c/rem-assign/17cf8adc6697.c b/corpus/c/rem-assign/17cf8adc6697.c new file mode 100644 index 00000000..1583b9a6 --- /dev/null +++ b/corpus/c/rem-assign/17cf8adc6697.c @@ -0,0 +1 @@ +void f() { x %= 1; } diff --git a/corpus/c/rem-assign/17cf8adc6697.mutation.json b/corpus/c/rem-assign/17cf8adc6697.mutation.json new file mode 100644 index 00000000..a5659b62 --- /dev/null +++ b/corpus/c/rem-assign/17cf8adc6697.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/c/rem-assign/4002d6526b22.c b/corpus/c/rem-assign/4002d6526b22.c new file mode 100644 index 00000000..56757a70 --- /dev/null +++ b/corpus/c/rem-assign/4002d6526b22.c @@ -0,0 +1 @@ +void f() {} diff --git a/corpus/c/rem-assign/4002d6526b22.mutation.json b/corpus/c/rem-assign/4002d6526b22.mutation.json new file mode 100644 index 00000000..0ea8d2e2 --- /dev/null +++ b/corpus/c/rem-assign/4002d6526b22.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": "StatementBlock", + "subst_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 20, + "byte": 20 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 20, + "byte": 20 + } + } + }, + "subst": "{}" +} \ No newline at end of file diff --git a/corpus/c/rem-assign/852b52007446.c b/corpus/c/rem-assign/852b52007446.c new file mode 100644 index 00000000..75f6b237 --- /dev/null +++ b/corpus/c/rem-assign/852b52007446.c @@ -0,0 +1 @@ +void f() { x = 1; } diff --git a/corpus/c/rem-assign/852b52007446.mutation.json b/corpus/c/rem-assign/852b52007446.mutation.json new file mode 100644 index 00000000..aea3bc94 --- /dev/null +++ b/corpus/c/rem-assign/852b52007446.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Assign": "RemAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "=" +} \ No newline at end of file diff --git a/corpus/c/rem-assign/8c883acceca7.c b/corpus/c/rem-assign/8c883acceca7.c new file mode 100644 index 00000000..985dc590 --- /dev/null +++ b/corpus/c/rem-assign/8c883acceca7.c @@ -0,0 +1 @@ +void f() { x *= 1; } diff --git a/corpus/c/rem-assign/8c883acceca7.mutation.json b/corpus/c/rem-assign/8c883acceca7.mutation.json new file mode 100644 index 00000000..fd730fc7 --- /dev/null +++ b/corpus/c/rem-assign/8c883acceca7.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Assign": "RemAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "*=" +} \ No newline at end of file diff --git a/corpus/c/rem-assign/base.c b/corpus/c/rem-assign/base.c new file mode 100644 index 00000000..1583b9a6 --- /dev/null +++ b/corpus/c/rem-assign/base.c @@ -0,0 +1 @@ +void f() { x %= 1; } diff --git a/corpus/c/rem-assign/bfb926e71521.c b/corpus/c/rem-assign/bfb926e71521.c new file mode 100644 index 00000000..d544d76e --- /dev/null +++ b/corpus/c/rem-assign/bfb926e71521.c @@ -0,0 +1 @@ +void f() { x %= 0; } diff --git a/corpus/c/rem-assign/bfb926e71521.mutation.json b/corpus/c/rem-assign/bfb926e71521.mutation.json new file mode 100644 index 00000000..697762ab --- /dev/null +++ b/corpus/c/rem-assign/bfb926e71521.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/c/rem-assign/eb34429158be.c b/corpus/c/rem-assign/eb34429158be.c new file mode 100644 index 00000000..c51a8653 --- /dev/null +++ b/corpus/c/rem-assign/eb34429158be.c @@ -0,0 +1 @@ +void f() { x %= -1; } diff --git a/corpus/c/rem-assign/eb34429158be.mutation.json b/corpus/c/rem-assign/eb34429158be.mutation.json new file mode 100644 index 00000000..116c3005 --- /dev/null +++ b/corpus/c/rem-assign/eb34429158be.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/c/shl-assign/4002d6526b22.c b/corpus/c/shl-assign/4002d6526b22.c new file mode 100644 index 00000000..56757a70 --- /dev/null +++ b/corpus/c/shl-assign/4002d6526b22.c @@ -0,0 +1 @@ +void f() {} diff --git a/corpus/c/shl-assign/4002d6526b22.mutation.json b/corpus/c/shl-assign/4002d6526b22.mutation.json new file mode 100644 index 00000000..d7ef4da8 --- /dev/null +++ b/corpus/c/shl-assign/4002d6526b22.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": "StatementBlock", + "subst_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 21, + "byte": 21 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 21, + "byte": 21 + } + } + }, + "subst": "{}" +} \ No newline at end of file diff --git a/corpus/c/shl-assign/504accdf2cfc.c b/corpus/c/shl-assign/504accdf2cfc.c new file mode 100644 index 00000000..6d3808e2 --- /dev/null +++ b/corpus/c/shl-assign/504accdf2cfc.c @@ -0,0 +1 @@ +void f() { x <<= -1; } diff --git a/corpus/c/shl-assign/504accdf2cfc.mutation.json b/corpus/c/shl-assign/504accdf2cfc.mutation.json new file mode 100644 index 00000000..6448f8a6 --- /dev/null +++ b/corpus/c/shl-assign/504accdf2cfc.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 17, + "byte": 17 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 17, + "byte": 17 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/c/shl-assign/642ff8260eec.c b/corpus/c/shl-assign/642ff8260eec.c new file mode 100644 index 00000000..f94791a1 --- /dev/null +++ b/corpus/c/shl-assign/642ff8260eec.c @@ -0,0 +1 @@ +void f() { x <<= 0; } diff --git a/corpus/c/shl-assign/642ff8260eec.mutation.json b/corpus/c/shl-assign/642ff8260eec.mutation.json new file mode 100644 index 00000000..0fcc6bd7 --- /dev/null +++ b/corpus/c/shl-assign/642ff8260eec.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 17, + "byte": 17 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 17, + "byte": 17 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/c/shl-assign/852b52007446.c b/corpus/c/shl-assign/852b52007446.c new file mode 100644 index 00000000..75f6b237 --- /dev/null +++ b/corpus/c/shl-assign/852b52007446.c @@ -0,0 +1 @@ +void f() { x = 1; } diff --git a/corpus/c/shl-assign/852b52007446.mutation.json b/corpus/c/shl-assign/852b52007446.mutation.json new file mode 100644 index 00000000..059f4c80 --- /dev/null +++ b/corpus/c/shl-assign/852b52007446.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Assign": "ShlAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 16, + "byte": 16 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + } + }, + "subst": "=" +} \ No newline at end of file diff --git a/corpus/c/shl-assign/ad7e2c2bd0cf.c b/corpus/c/shl-assign/ad7e2c2bd0cf.c new file mode 100644 index 00000000..7bed31ab --- /dev/null +++ b/corpus/c/shl-assign/ad7e2c2bd0cf.c @@ -0,0 +1 @@ +void f() { x <<= 1; } diff --git a/corpus/c/shl-assign/ad7e2c2bd0cf.mutation.json b/corpus/c/shl-assign/ad7e2c2bd0cf.mutation.json new file mode 100644 index 00000000..bfa854e5 --- /dev/null +++ b/corpus/c/shl-assign/ad7e2c2bd0cf.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 17, + "byte": 17 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 17, + "byte": 17 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/c/shl-assign/base.c b/corpus/c/shl-assign/base.c new file mode 100644 index 00000000..7bed31ab --- /dev/null +++ b/corpus/c/shl-assign/base.c @@ -0,0 +1 @@ +void f() { x <<= 1; } diff --git a/corpus/c/shl-assign/c162d6f62d49.c b/corpus/c/shl-assign/c162d6f62d49.c new file mode 100644 index 00000000..37b68fb3 --- /dev/null +++ b/corpus/c/shl-assign/c162d6f62d49.c @@ -0,0 +1 @@ +void f() { x >>= 1; } diff --git a/corpus/c/shl-assign/c162d6f62d49.mutation.json b/corpus/c/shl-assign/c162d6f62d49.mutation.json new file mode 100644 index 00000000..59532b47 --- /dev/null +++ b/corpus/c/shl-assign/c162d6f62d49.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Assign": "ShlAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 16, + "byte": 16 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + } + }, + "subst": ">>=" +} \ No newline at end of file diff --git a/corpus/c/shr-assign/4002d6526b22.c b/corpus/c/shr-assign/4002d6526b22.c new file mode 100644 index 00000000..56757a70 --- /dev/null +++ b/corpus/c/shr-assign/4002d6526b22.c @@ -0,0 +1 @@ +void f() {} diff --git a/corpus/c/shr-assign/4002d6526b22.mutation.json b/corpus/c/shr-assign/4002d6526b22.mutation.json new file mode 100644 index 00000000..d7ef4da8 --- /dev/null +++ b/corpus/c/shr-assign/4002d6526b22.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": "StatementBlock", + "subst_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 21, + "byte": 21 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 21, + "byte": 21 + } + } + }, + "subst": "{}" +} \ No newline at end of file diff --git a/corpus/c/shr-assign/4f588d5e0e20.c b/corpus/c/shr-assign/4f588d5e0e20.c new file mode 100644 index 00000000..7a17770a --- /dev/null +++ b/corpus/c/shr-assign/4f588d5e0e20.c @@ -0,0 +1 @@ +void f() { x >>= -1; } diff --git a/corpus/c/shr-assign/4f588d5e0e20.mutation.json b/corpus/c/shr-assign/4f588d5e0e20.mutation.json new file mode 100644 index 00000000..6448f8a6 --- /dev/null +++ b/corpus/c/shr-assign/4f588d5e0e20.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 17, + "byte": 17 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 17, + "byte": 17 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/c/shr-assign/852b52007446.c b/corpus/c/shr-assign/852b52007446.c new file mode 100644 index 00000000..75f6b237 --- /dev/null +++ b/corpus/c/shr-assign/852b52007446.c @@ -0,0 +1 @@ +void f() { x = 1; } diff --git a/corpus/c/shr-assign/852b52007446.mutation.json b/corpus/c/shr-assign/852b52007446.mutation.json new file mode 100644 index 00000000..87adac55 --- /dev/null +++ b/corpus/c/shr-assign/852b52007446.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Assign": "ShrAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 16, + "byte": 16 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + } + }, + "subst": "=" +} \ No newline at end of file diff --git a/corpus/c/shr-assign/9465ec8ba246.c b/corpus/c/shr-assign/9465ec8ba246.c new file mode 100644 index 00000000..2b70dba3 --- /dev/null +++ b/corpus/c/shr-assign/9465ec8ba246.c @@ -0,0 +1 @@ +void f() { x >>= 0; } diff --git a/corpus/c/shr-assign/9465ec8ba246.mutation.json b/corpus/c/shr-assign/9465ec8ba246.mutation.json new file mode 100644 index 00000000..0fcc6bd7 --- /dev/null +++ b/corpus/c/shr-assign/9465ec8ba246.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 17, + "byte": 17 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 17, + "byte": 17 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/c/shr-assign/ad7e2c2bd0cf.c b/corpus/c/shr-assign/ad7e2c2bd0cf.c new file mode 100644 index 00000000..7bed31ab --- /dev/null +++ b/corpus/c/shr-assign/ad7e2c2bd0cf.c @@ -0,0 +1 @@ +void f() { x <<= 1; } diff --git a/corpus/c/shr-assign/ad7e2c2bd0cf.mutation.json b/corpus/c/shr-assign/ad7e2c2bd0cf.mutation.json new file mode 100644 index 00000000..1c1ca14b --- /dev/null +++ b/corpus/c/shr-assign/ad7e2c2bd0cf.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Assign": "ShrAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 16, + "byte": 16 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + } + }, + "subst": "<<=" +} \ No newline at end of file diff --git a/corpus/c/shr-assign/base.c b/corpus/c/shr-assign/base.c new file mode 100644 index 00000000..37b68fb3 --- /dev/null +++ b/corpus/c/shr-assign/base.c @@ -0,0 +1 @@ +void f() { x >>= 1; } diff --git a/corpus/c/shr-assign/c162d6f62d49.c b/corpus/c/shr-assign/c162d6f62d49.c new file mode 100644 index 00000000..37b68fb3 --- /dev/null +++ b/corpus/c/shr-assign/c162d6f62d49.c @@ -0,0 +1 @@ +void f() { x >>= 1; } diff --git a/corpus/c/shr-assign/c162d6f62d49.mutation.json b/corpus/c/shr-assign/c162d6f62d49.mutation.json new file mode 100644 index 00000000..bfa854e5 --- /dev/null +++ b/corpus/c/shr-assign/c162d6f62d49.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 17, + "byte": 17 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 17, + "byte": 17 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/c/statement-block/4002d6526b22.c b/corpus/c/statement-block/4002d6526b22.c new file mode 100644 index 00000000..56757a70 --- /dev/null +++ b/corpus/c/statement-block/4002d6526b22.c @@ -0,0 +1 @@ +void f() {} diff --git a/corpus/c/statement-block/4002d6526b22.mutation.json b/corpus/c/statement-block/4002d6526b22.mutation.json new file mode 100644 index 00000000..0ea8d2e2 --- /dev/null +++ b/corpus/c/statement-block/4002d6526b22.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": "StatementBlock", + "subst_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 20, + "byte": 20 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 20, + "byte": 20 + } + } + }, + "subst": "{}" +} \ No newline at end of file diff --git a/corpus/c/statement-block/base.c b/corpus/c/statement-block/base.c new file mode 100644 index 00000000..6bfccd9a --- /dev/null +++ b/corpus/c/statement-block/base.c @@ -0,0 +1 @@ +void f() { return; } diff --git a/corpus/c/sub-assign/1f67b1044a34.c b/corpus/c/sub-assign/1f67b1044a34.c new file mode 100644 index 00000000..223d8d5c --- /dev/null +++ b/corpus/c/sub-assign/1f67b1044a34.c @@ -0,0 +1 @@ +void f() { x -= 0; } diff --git a/corpus/c/sub-assign/1f67b1044a34.mutation.json b/corpus/c/sub-assign/1f67b1044a34.mutation.json new file mode 100644 index 00000000..697762ab --- /dev/null +++ b/corpus/c/sub-assign/1f67b1044a34.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/c/sub-assign/4002d6526b22.c b/corpus/c/sub-assign/4002d6526b22.c new file mode 100644 index 00000000..56757a70 --- /dev/null +++ b/corpus/c/sub-assign/4002d6526b22.c @@ -0,0 +1 @@ +void f() {} diff --git a/corpus/c/sub-assign/4002d6526b22.mutation.json b/corpus/c/sub-assign/4002d6526b22.mutation.json new file mode 100644 index 00000000..0ea8d2e2 --- /dev/null +++ b/corpus/c/sub-assign/4002d6526b22.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": "StatementBlock", + "subst_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 20, + "byte": 20 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 20, + "byte": 20 + } + } + }, + "subst": "{}" +} \ No newline at end of file diff --git a/corpus/c/sub-assign/43b73202da01.c b/corpus/c/sub-assign/43b73202da01.c new file mode 100644 index 00000000..89389f73 --- /dev/null +++ b/corpus/c/sub-assign/43b73202da01.c @@ -0,0 +1 @@ +void f() { x += 1; } diff --git a/corpus/c/sub-assign/43b73202da01.mutation.json b/corpus/c/sub-assign/43b73202da01.mutation.json new file mode 100644 index 00000000..706683c0 --- /dev/null +++ b/corpus/c/sub-assign/43b73202da01.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Assign": "SubAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "+=" +} \ No newline at end of file diff --git a/corpus/c/sub-assign/852b52007446.c b/corpus/c/sub-assign/852b52007446.c new file mode 100644 index 00000000..75f6b237 --- /dev/null +++ b/corpus/c/sub-assign/852b52007446.c @@ -0,0 +1 @@ +void f() { x = 1; } diff --git a/corpus/c/sub-assign/852b52007446.mutation.json b/corpus/c/sub-assign/852b52007446.mutation.json new file mode 100644 index 00000000..969b0c17 --- /dev/null +++ b/corpus/c/sub-assign/852b52007446.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Assign": "SubAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "=" +} \ No newline at end of file diff --git a/corpus/c/sub-assign/base.c b/corpus/c/sub-assign/base.c new file mode 100644 index 00000000..dfcceea3 --- /dev/null +++ b/corpus/c/sub-assign/base.c @@ -0,0 +1 @@ +void f() { x -= 1; } diff --git a/corpus/c/sub-assign/eeadaa1f36d2.c b/corpus/c/sub-assign/eeadaa1f36d2.c new file mode 100644 index 00000000..5ad88671 --- /dev/null +++ b/corpus/c/sub-assign/eeadaa1f36d2.c @@ -0,0 +1 @@ +void f() { x -= -1; } diff --git a/corpus/c/sub-assign/eeadaa1f36d2.mutation.json b/corpus/c/sub-assign/eeadaa1f36d2.mutation.json new file mode 100644 index 00000000..116c3005 --- /dev/null +++ b/corpus/c/sub-assign/eeadaa1f36d2.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/c/sub-assign/faf1f85e307e.c b/corpus/c/sub-assign/faf1f85e307e.c new file mode 100644 index 00000000..dfcceea3 --- /dev/null +++ b/corpus/c/sub-assign/faf1f85e307e.c @@ -0,0 +1 @@ +void f() { x -= 1; } diff --git a/corpus/c/sub-assign/faf1f85e307e.mutation.json b/corpus/c/sub-assign/faf1f85e307e.mutation.json new file mode 100644 index 00000000..a5659b62 --- /dev/null +++ b/corpus/c/sub-assign/faf1f85e307e.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/c/switch-case/0d66ac41dbb0.c b/corpus/c/switch-case/0d66ac41dbb0.c new file mode 100644 index 00000000..1328fa94 --- /dev/null +++ b/corpus/c/switch-case/0d66ac41dbb0.c @@ -0,0 +1 @@ +void f() { switch(x) { } } diff --git a/corpus/c/switch-case/0d66ac41dbb0.mutation.json b/corpus/c/switch-case/0d66ac41dbb0.mutation.json new file mode 100644 index 00000000..2165499d --- /dev/null +++ b/corpus/c/switch-case/0d66ac41dbb0.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": "SwitchCase", + "subst_span": { + "start": { + "line": 0, + "col": 23, + "byte": 23 + }, + "end": { + "line": 0, + "col": 37, + "byte": 37 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 23, + "byte": 23 + }, + "end": { + "line": 0, + "col": 37, + "byte": 37 + } + } + }, + "subst": "" +} \ No newline at end of file diff --git a/corpus/c/switch-case/4002d6526b22.c b/corpus/c/switch-case/4002d6526b22.c new file mode 100644 index 00000000..56757a70 --- /dev/null +++ b/corpus/c/switch-case/4002d6526b22.c @@ -0,0 +1 @@ +void f() {} diff --git a/corpus/c/switch-case/4002d6526b22.mutation.json b/corpus/c/switch-case/4002d6526b22.mutation.json new file mode 100644 index 00000000..ce957bcc --- /dev/null +++ b/corpus/c/switch-case/4002d6526b22.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": "StatementBlock", + "subst_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 41, + "byte": 41 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 41, + "byte": 41 + } + } + }, + "subst": "{}" +} \ No newline at end of file diff --git a/corpus/c/switch-case/7922529ee8bf.c b/corpus/c/switch-case/7922529ee8bf.c new file mode 100644 index 00000000..bcf45275 --- /dev/null +++ b/corpus/c/switch-case/7922529ee8bf.c @@ -0,0 +1 @@ +void f() { switch(x) { case 1: break; } } diff --git a/corpus/c/switch-case/7922529ee8bf.mutation.json b/corpus/c/switch-case/7922529ee8bf.mutation.json new file mode 100644 index 00000000..4119205b --- /dev/null +++ b/corpus/c/switch-case/7922529ee8bf.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 28, + "byte": 28 + }, + "end": { + "line": 0, + "col": 29, + "byte": 29 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 28, + "byte": 28 + }, + "end": { + "line": 0, + "col": 29, + "byte": 29 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/c/switch-case/9c80a16e0793.c b/corpus/c/switch-case/9c80a16e0793.c new file mode 100644 index 00000000..c95dcda2 --- /dev/null +++ b/corpus/c/switch-case/9c80a16e0793.c @@ -0,0 +1 @@ +void f() { switch(x) {} } diff --git a/corpus/c/switch-case/9c80a16e0793.mutation.json b/corpus/c/switch-case/9c80a16e0793.mutation.json new file mode 100644 index 00000000..629568e9 --- /dev/null +++ b/corpus/c/switch-case/9c80a16e0793.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": "StatementBlock", + "subst_span": { + "start": { + "line": 0, + "col": 21, + "byte": 21 + }, + "end": { + "line": 0, + "col": 39, + "byte": 39 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 21, + "byte": 21 + }, + "end": { + "line": 0, + "col": 39, + "byte": 39 + } + } + }, + "subst": "{}" +} \ No newline at end of file diff --git a/corpus/c/switch-case/9ec946602888.c b/corpus/c/switch-case/9ec946602888.c new file mode 100644 index 00000000..47dea691 --- /dev/null +++ b/corpus/c/switch-case/9ec946602888.c @@ -0,0 +1 @@ +void f() { switch(x) { case 0: break; } } diff --git a/corpus/c/switch-case/9ec946602888.mutation.json b/corpus/c/switch-case/9ec946602888.mutation.json new file mode 100644 index 00000000..31dfe007 --- /dev/null +++ b/corpus/c/switch-case/9ec946602888.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 28, + "byte": 28 + }, + "end": { + "line": 0, + "col": 29, + "byte": 29 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 28, + "byte": 28 + }, + "end": { + "line": 0, + "col": 29, + "byte": 29 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/c/switch-case/base.c b/corpus/c/switch-case/base.c new file mode 100644 index 00000000..bcf45275 --- /dev/null +++ b/corpus/c/switch-case/base.c @@ -0,0 +1 @@ +void f() { switch(x) { case 1: break; } } diff --git a/corpus/c/switch-case/d12efa585992.c b/corpus/c/switch-case/d12efa585992.c new file mode 100644 index 00000000..29603f5c --- /dev/null +++ b/corpus/c/switch-case/d12efa585992.c @@ -0,0 +1 @@ +void f() { switch(x) { case -1: break; } } diff --git a/corpus/c/switch-case/d12efa585992.mutation.json b/corpus/c/switch-case/d12efa585992.mutation.json new file mode 100644 index 00000000..da6ddfd0 --- /dev/null +++ b/corpus/c/switch-case/d12efa585992.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 28, + "byte": 28 + }, + "end": { + "line": 0, + "col": 29, + "byte": 29 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 28, + "byte": 28 + }, + "end": { + "line": 0, + "col": 29, + "byte": 29 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/c/unary-not/4002d6526b22.c b/corpus/c/unary-not/4002d6526b22.c new file mode 100644 index 00000000..56757a70 --- /dev/null +++ b/corpus/c/unary-not/4002d6526b22.c @@ -0,0 +1 @@ +void f() {} diff --git a/corpus/c/unary-not/4002d6526b22.mutation.json b/corpus/c/unary-not/4002d6526b22.mutation.json new file mode 100644 index 00000000..97dfaefd --- /dev/null +++ b/corpus/c/unary-not/4002d6526b22.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": "StatementBlock", + "subst_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 24, + "byte": 24 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 24, + "byte": 24 + } + } + }, + "subst": "{}" +} \ No newline at end of file diff --git a/corpus/c/unary-not/8278de73be74.c b/corpus/c/unary-not/8278de73be74.c new file mode 100644 index 00000000..61657060 --- /dev/null +++ b/corpus/c/unary-not/8278de73be74.c @@ -0,0 +1 @@ +void f() { int x = y; } diff --git a/corpus/c/unary-not/8278de73be74.mutation.json b/corpus/c/unary-not/8278de73be74.mutation.json new file mode 100644 index 00000000..816ba26e --- /dev/null +++ b/corpus/c/unary-not/8278de73be74.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "c", + "twig": [ + "src/a.c" + ], + "kind": "UnaryNot", + "subst_span": { + "start": { + "line": 0, + "col": 19, + "byte": 19 + }, + "end": { + "line": 0, + "col": 20, + "byte": 20 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 19, + "byte": 19 + }, + "end": { + "line": 0, + "col": 21, + "byte": 21 + } + } + }, + "subst": "" +} \ No newline at end of file diff --git a/corpus/c/unary-not/base.c b/corpus/c/unary-not/base.c new file mode 100644 index 00000000..b31dfa22 --- /dev/null +++ b/corpus/c/unary-not/base.c @@ -0,0 +1 @@ +void f() { int x = !y; } diff --git a/crates/bough-cli/src/render.rs b/crates/bough-cli/src/render.rs index 02adb434..76d45c37 100644 --- a/crates/bough-cli/src/render.rs +++ b/crates/bough-cli/src/render.rs @@ -386,6 +386,7 @@ impl Render for LanguageId { LanguageId::Javascript => "js", LanguageId::Typescript => "ts", LanguageId::Python => "py", + LanguageId::C => "c", } ) } @@ -397,6 +398,7 @@ impl Render for LanguageId { LanguageId::Javascript => "JavaScript", LanguageId::Typescript => "TypeScript", LanguageId::Python => "Python", + LanguageId::C => "C", } ) } @@ -406,6 +408,7 @@ impl Render for LanguageId { LanguageId::Javascript => r#""js""#.to_string(), LanguageId::Typescript => r#""ts""#.to_string(), LanguageId::Python => r#""py""#.to_string(), + LanguageId::C => r#""c""#.to_string(), } } } diff --git a/crates/bough-cli/src/show_single_mutation.rs b/crates/bough-cli/src/show_single_mutation.rs index 04194d8d..4ab253f8 100644 --- a/crates/bough-cli/src/show_single_mutation.rs +++ b/crates/bough-cli/src/show_single_mutation.rs @@ -54,6 +54,7 @@ impl ShowSingleMutation { LanguageId::Javascript => "javascript", LanguageId::Typescript => "typescript", LanguageId::Python => "python", + LanguageId::C => "c", } } } diff --git a/crates/bough-core/Cargo.toml b/crates/bough-core/Cargo.toml index 3597706b..263f2458 100644 --- a/crates/bough-core/Cargo.toml +++ b/crates/bough-core/Cargo.toml @@ -21,6 +21,7 @@ arborium-tree-sitter = "2.16" arborium-javascript = "2.16" arborium-typescript = "2.16" arborium-python = "2.16" +arborium-c = "2.16" wait-timeout = "0.2" libc = "0.2" tracing = "0.1" diff --git a/crates/bough-core/src/language/c.rs b/crates/bough-core/src/language/c.rs new file mode 100644 index 00000000..04f509bf --- /dev/null +++ b/crates/bough-core/src/language/c.rs @@ -0,0 +1,237 @@ +use super::LanguageDriver; +use crate::mutant::{ + ArrayDeclKind, AssignMutationKind, BinaryOpMutationKind, LiteralKind, MutantKind, Span, + span_from_node, +}; +use tracing::trace; + +pub(crate) struct CDriver; + +impl LanguageDriver for CDriver { + fn ts_language(&self) -> arborium_tree_sitter::Language { + arborium_c::language().into() + } + + fn check_node( + &self, + node: &arborium_tree_sitter::Node<'_>, + file_content: &[u8], + ) -> Option<(MutantKind, Span, Span)> { + let result = match node.kind() { + "binary_expression" => { + let op_node = node.child_by_field_name("operator")?; + let op_text = op_node.utf8_text(file_content).ok()?; + let kind = match op_text { + "+" => BinaryOpMutationKind::Add, + "-" => BinaryOpMutationKind::Sub, + "*" => BinaryOpMutationKind::Mul, + "/" => BinaryOpMutationKind::Div, + "%" => BinaryOpMutationKind::Rem, + "&" => BinaryOpMutationKind::BitAnd, + "|" => BinaryOpMutationKind::BitOr, + "^" => BinaryOpMutationKind::BitXor, + "<<" => BinaryOpMutationKind::Shl, + ">>" => BinaryOpMutationKind::Shr, + "&&" => BinaryOpMutationKind::And, + "||" => BinaryOpMutationKind::Or, + "==" => BinaryOpMutationKind::Eq, + "!=" => BinaryOpMutationKind::Ne, + ">" => BinaryOpMutationKind::Gt, + ">=" => BinaryOpMutationKind::Gte, + "<" => BinaryOpMutationKind::Lt, + "<=" => BinaryOpMutationKind::Lte, + _ => return None, + }; + Some(( + MutantKind::BinaryOp(kind), + span_from_node(&op_node), + span_from_node(node), + )) + } + "assignment_expression" => { + let op_node = node.child_by_field_name("operator")?; + let op_text = op_node.utf8_text(file_content).ok()?; + let kind = match op_text { + "=" => AssignMutationKind::NormalAssign, + "+=" => AssignMutationKind::AddAssign, + "-=" => AssignMutationKind::SubAssign, + "*=" => AssignMutationKind::MulAssign, + "/=" => AssignMutationKind::DivAssign, + "%=" => AssignMutationKind::RemAssign, + "&=" => AssignMutationKind::BitAndAssign, + "|=" => AssignMutationKind::BitOrAssign, + "^=" => AssignMutationKind::BitXorAssign, + "<<=" => AssignMutationKind::ShlAssign, + ">>=" => AssignMutationKind::ShrAssign, + _ => return None, + }; + Some(( + MutantKind::Assign(kind), + span_from_node(&op_node), + span_from_node(node), + )) + } + "compound_statement" => { + let span = span_from_node(node); + Some((MutantKind::StatementBlock, span.clone(), span)) + } + "if_statement" | "while_statement" => { + let condition = node.child_by_field_name("condition")?; + let inner = if condition.kind() == "parenthesized_expression" { + condition.child(1).unwrap_or(condition) + } else { + condition + }; + Some(( + MutantKind::Condition, + span_from_node(&inner), + span_from_node(node), + )) + } + "for_statement" => { + let condition = node.child_by_field_name("condition")?; + Some(( + MutantKind::Condition, + span_from_node(&condition), + span_from_node(node), + )) + } + "case_statement" => { + let span = span_from_node(node); + Some((MutantKind::SwitchCase, span.clone(), span)) + } + "number_literal" => { + let span = span_from_node(node); + Some(( + MutantKind::Literal(LiteralKind::Number), + span.clone(), + span, + )) + } + "string_literal" => { + let text = node.utf8_text(file_content).ok()?; + let kind = if text == "\"\"" { + LiteralKind::EmptyString + } else { + LiteralKind::String + }; + let span = span_from_node(node); + Some((MutantKind::Literal(kind), span.clone(), span)) + } + "initializer_list" if node.named_child_count() > 0 => { + let span = span_from_node(node); + Some(( + MutantKind::ArrayDecl(ArrayDeclKind::Inline), + span.clone(), + span, + )) + } + "unary_expression" => { + let op_node = node.child_by_field_name("operator")?; + let op_text = op_node.utf8_text(file_content).ok()?; + if op_text == "!" { + Some(( + MutantKind::UnaryNot, + span_from_node(&op_node), + span_from_node(node), + )) + } else { + None + } + } + _ => None, + }; + if let Some((ref kind, ref span, _)) = result { + trace!(node_kind = node.kind(), mutant_kind = ?kind, start_byte = span.start().byte(), "c: matched node"); + } + result + } + + fn substitutions(&self, kind: &MutantKind) -> Vec { + match kind { + MutantKind::BinaryOp(BinaryOpMutationKind::Add) => vec!["-".into(), "*".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::Sub) => vec!["+".into(), "/".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::Mul) => vec!["/".into(), "+".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::Div) => vec!["*".into(), "-".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::Rem) => vec!["*".into(), "/".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::BitAnd) => vec!["|".into(), "^".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::BitOr) => vec!["&".into(), "^".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::BitXor) => vec!["&".into(), "|".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::Shl) => vec![">>".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::Shr) => vec!["<<".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::And) => vec!["||".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::Or) => vec!["&&".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::Eq) => vec!["!=".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::Ne) => vec!["==".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::Gt) => vec!["<=".into(), ">=".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::Gte) => vec!["<".into(), ">".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::Lt) => vec![">=".into(), "<=".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::Lte) => vec![">".into(), "<".into()], + MutantKind::Assign(AssignMutationKind::NormalAssign) => { + vec!["+=".into(), "-=".into()] + } + MutantKind::Assign(AssignMutationKind::AddAssign) => vec!["-=".into(), "=".into()], + MutantKind::Assign(AssignMutationKind::SubAssign) => vec!["+=".into(), "=".into()], + MutantKind::Assign(AssignMutationKind::MulAssign) => vec!["/=".into(), "=".into()], + MutantKind::Assign(AssignMutationKind::DivAssign) => vec!["*=".into(), "=".into()], + MutantKind::Assign(AssignMutationKind::RemAssign) => vec!["*=".into(), "=".into()], + MutantKind::Assign(AssignMutationKind::BitAndAssign) => vec!["|=".into(), "=".into()], + MutantKind::Assign(AssignMutationKind::BitOrAssign) => vec!["&=".into(), "=".into()], + MutantKind::Assign(AssignMutationKind::BitXorAssign) => vec!["&=".into(), "=".into()], + MutantKind::Assign(AssignMutationKind::ShlAssign) => vec![">>=".into(), "=".into()], + MutantKind::Assign(AssignMutationKind::ShrAssign) => vec!["<<=".into(), "=".into()], + MutantKind::StatementBlock => vec!["{}".into()], + MutantKind::Condition => vec!["1".into(), "0".into()], + MutantKind::SwitchCase => vec!["".into()], + MutantKind::Literal(LiteralKind::Number) => vec![ + "0".into(), + "1".into(), + "-1".into(), + ], + MutantKind::Literal(LiteralKind::String) => vec!["\"\"".into()], + MutantKind::Literal(LiteralKind::EmptyString) => vec!["\"bough\"".into()], + MutantKind::ArrayDecl(ArrayDeclKind::Inline) => vec!["{}".into()], + MutantKind::UnaryNot => vec!["".into()], + _ => vec![], + } + } + + fn is_context_boundary(&self, node: &arborium_tree_sitter::Node<'_>) -> bool { + matches!( + node.kind(), + "function_definition" | "struct_specifier" + ) + } +} + +#[cfg(test)] +mod tests { + fn dump_tree(src: &str) { + let lang: arborium_tree_sitter::Language = arborium_c::language().into(); + let mut parser = arborium_tree_sitter::Parser::new(); + parser.set_language(&lang).unwrap(); + let tree = parser.parse(src.as_bytes(), None).unwrap(); + fn print_node(node: &arborium_tree_sitter::Node, src: &[u8], indent: usize) { + let text = node.utf8_text(src).unwrap_or(""); + let field = node.parent().and_then(|p| { + (0..p.child_count()) + .find(|&i| p.child(i as u32).map(|c| c.id() == node.id()).unwrap_or(false)) + .and_then(|i| p.field_name_for_child(i as u32)) + }); + let field_str = field.map(|f| format!("{f}: ")).unwrap_or_default(); + eprintln!("{:indent$}{field_str}{} [{}-{}] {text:?}", "", node.kind(), node.start_byte(), node.end_byte(), indent=indent); + for i in 0..node.child_count() { + if let Some(child) = node.child(i as u32) { + print_node(&child, src, indent + 2); + } + } + } + print_node(&tree.root_node(), src.as_bytes(), 0); + } + + #[test] + #[ignore] + fn debug_tree() { + dump_tree("int x = a + b;"); + } +} diff --git a/crates/bough-core/src/language/mod.rs b/crates/bough-core/src/language/mod.rs index 6f54818b..6fddcab0 100644 --- a/crates/bough-core/src/language/mod.rs +++ b/crates/bough-core/src/language/mod.rs @@ -1,7 +1,9 @@ +mod c; mod javascript; mod python; mod typescript; +pub(crate) use c::CDriver; pub(crate) use javascript::JavascriptDriver; pub(crate) use python::PythonDriver; pub(crate) use typescript::TypescriptDriver; @@ -28,5 +30,6 @@ pub(crate) fn driver_for_lang(lang: crate::LanguageId) -> Box Box::new(JavascriptDriver), crate::LanguageId::Typescript => Box::new(TypescriptDriver), crate::LanguageId::Python => Box::new(PythonDriver), + crate::LanguageId::C => Box::new(CDriver), } } diff --git a/crates/bough-core/src/lib.rs b/crates/bough-core/src/lib.rs index e881f57f..3bddec69 100644 --- a/crates/bough-core/src/lib.rs +++ b/crates/bough-core/src/lib.rs @@ -35,6 +35,8 @@ pub enum LanguageId { Typescript, #[facet(rename = "py")] Python, + #[facet(rename = "c")] + C, } impl LanguageId { @@ -42,6 +44,7 @@ impl LanguageId { LanguageId::Javascript, LanguageId::Typescript, LanguageId::Python, + LanguageId::C, ]; pub fn substitutions(&self, kind: &MutantKind) -> Vec { @@ -53,6 +56,7 @@ impl LanguageId { LanguageId::Javascript => "js", LanguageId::Typescript => "ts", LanguageId::Python => "py", + LanguageId::C => "c", } } @@ -61,6 +65,7 @@ impl LanguageId { LanguageId::Javascript => "JavaScript", LanguageId::Typescript => "TypeScript", LanguageId::Python => "Python", + LanguageId::C => "C", } } @@ -69,6 +74,7 @@ impl LanguageId { LanguageId::Javascript => "javascript", LanguageId::Typescript => "typescript", LanguageId::Python => "python", + LanguageId::C => "c", } } diff --git a/crates/bough-corpus-tests/build.rs b/crates/bough-corpus-tests/build.rs index 9ca36b1e..fb5eb2e9 100644 --- a/crates/bough-corpus-tests/build.rs +++ b/crates/bough-corpus-tests/build.rs @@ -33,6 +33,7 @@ fn main() { "javascript" => "bough_core::LanguageId::Javascript", "typescript" => "bough_core::LanguageId::Typescript", "python" => "bough_core::LanguageId::Python", + "c" => "bough_core::LanguageId::C", _ => continue, }; @@ -40,6 +41,7 @@ fn main() { "javascript" => "js", "typescript" => "ts", "python" => "py", + "c" => "c", _ => continue, }; diff --git a/crates/bough-docs-cli/Cargo.toml b/crates/bough-docs-cli/Cargo.toml index ec7ef547..173c35d4 100644 --- a/crates/bough-docs-cli/Cargo.toml +++ b/crates/bough-docs-cli/Cargo.toml @@ -17,7 +17,7 @@ facet-core = "0.44" figue = "2" arborium = { version = "2.16", features = ["lang-rust", -"lang-javascript", "lang-typescript", "lang-python", "lang-toml", "lang-bash", "lang-json", "lang-html", "lang-css"] } +"lang-c", "lang-javascript", "lang-typescript", "lang-python", "lang-toml", "lang-bash", "lang-json", "lang-html", "lang-css"] } comrak = { version = "0.36", default-features = false } tiny_http = "0.12" markdown-frontmatter = { version = "0.5", default-features = false, features = ["toml"] }