- entry_type: invariant_set
  metadata:
    format_version: "2.0"
    uuid: 2a353436-4e31-4332-8610-44d54a60e871
    creation_time: 2025-03-21T00:44:31Z
    producer:
      name: Goblint
      version: heads/master-0-g66dff5a90-dirty
      command_line: '''./goblint'' ''--conf'' ''conf/svcomp.json'' ''--disable'' ''witness.graphml.enabled''
        ''--sets'' ''ana.specification'' ''/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/properties/valid-memsafety.prp''
        ''--sets'' ''exp.architecture'' ''32bit'' ''/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/ldv-memsafety/ArraysOfVariableLength2.c'''
    task:
      input_files:
      - /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/ldv-memsafety/ArraysOfVariableLength2.c
      input_file_hashes:
        /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/ldv-memsafety/ArraysOfVariableLength2.c: 13ad8bc9cfa3954c0bae4db0509cb11733a45600a9e4ff56ca5bdd4aceeb1fc0
      data_model: ILP32
      language: C
      specification: 'CHECK( init(main()), LTL(G valid-free) )

        CHECK( init(main()), LTL(G valid-deref) )

        CHECK( init(main()), LTL(G valid-memtrack) )'
  content:
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/ldv-memsafety/ArraysOfVariableLength2.c
        line: 13
        column: 5
        function: bar
      value: size <= 99
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/ldv-memsafety/ArraysOfVariableLength2.c
        line: 13
        column: 5
        function: bar
      value: (0LL - (long long )i) + (long long )size >= 0LL
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/ldv-memsafety/ArraysOfVariableLength2.c
        line: 13
        column: 5
        function: bar
      value: (((2147483747LL + (long long )res) - (long long )size >= 0LL && (2147483746LL
        - (long long )res) - (long long )size >= 0LL) && ((((((((((((((4 <= size &&
        4 <= i) && i <= 99) && (-8LL + (long long )i) + (long long )size >= 0LL) &&
        (2147483644LL + (long long )res) + (long long )size >= 0LL) && (2147483644LL
        + (long long )i) + (long long )res >= 0LL) && (2147483643LL - (long long )res)
        + (long long )size >= 0LL) && (2147483747LL - (long long )i) + (long long
        )res >= 0LL) && (95LL + (long long )i) - (long long )size >= 0LL) && (2147483643LL
        + (long long )i) - (long long )res >= 0LL) && (198LL - (long long )i) - (long
        long )size >= 0LL) && (2147483746LL - (long long )i) - (long long )res >=
        0LL) || ((((((((((3 <= size && (-6LL + (long long )i) + (long long )size >=
        0LL) && (2147483645LL + (long long )res) + (long long )size >= 0LL) && (2147483645LL
        + (long long )i) + (long long )res >= 0LL) && (2147483644LL - (long long )res)
        + (long long )size >= 0LL) && (2147483651LL - (long long )i) + (long long
        )res >= 0LL) && (96LL + (long long )i) - (long long )size >= 0LL) && (2147483644LL
        + (long long )i) - (long long )res >= 0LL) && (102LL - (long long )i) - (long
        long )size >= 0LL) && (2147483650LL - (long long )i) - (long long )res >=
        0LL) && i == 3)) || ((((((((((2 <= size && (-4LL + (long long )i) + (long
        long )size >= 0LL) && (2147483646LL + (long long )res) + (long long )size
        >= 0LL) && (2147483646LL + (long long )i) + (long long )res >= 0LL) && (2147483645LL
        - (long long )res) + (long long )size >= 0LL) && (2147483650LL - (long long
        )i) + (long long )res >= 0LL) && (97LL + (long long )i) - (long long )size
        >= 0LL) && (2147483645LL + (long long )i) - (long long )res >= 0LL) && (101LL
        - (long long )i) - (long long )size >= 0LL) && (2147483649LL - (long long
        )i) - (long long )res >= 0LL) && i == 2)) || ((((((((((1 <= size && (-2LL
        + (long long )i) + (long long )size >= 0LL) && (2147483647LL + (long long
        )res) + (long long )size >= 0LL) && (2147483647LL + (long long )i) + (long
        long )res >= 0LL) && (2147483646LL - (long long )res) + (long long )size >=
        0LL) && (2147483649LL - (long long )i) + (long long )res >= 0LL) && (98LL
        + (long long )i) - (long long )size >= 0LL) && (2147483646LL + (long long
        )i) - (long long )res >= 0LL) && (100LL - (long long )i) - (long long )size
        >= 0LL) && (2147483648LL - (long long )i) - (long long )res >= 0LL) && i ==
        1))) || (((((((((((((0 <= size && (0LL - (long long )res) + (long long )size
        >= 0LL) && (0LL - (long long )i) + (long long )res >= 0LL) && (long long )res
        + (long long )size >= 0LL) && (long long )i + (long long )size >= 0LL) &&
        (long long )i + (long long )res >= 0LL) && (99LL + (long long )res) - (long
        long )size >= 0LL) && (99LL + (long long )i) - (long long )size >= 0LL) &&
        (0LL - (long long )i) - (long long )res >= 0LL) && (99LL - (long long )res)
        - (long long )size >= 0LL) && (99LL - (long long )i) - (long long )size >=
        0LL) && (long long )i - (long long )res >= 0LL) && res == 0) && i == 0)
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/ldv-memsafety/ArraysOfVariableLength2.c
        line: 22
        column: 5
        function: foo
      value: n <= 99
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/ldv-memsafety/ArraysOfVariableLength2.c
        line: 22
        column: 5
        function: foo
      value: size <= 99
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/ldv-memsafety/ArraysOfVariableLength2.c
        line: 22
        column: 5
        function: foo
      value: (0LL - (long long )n) + (long long )size >= 0LL
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/ldv-memsafety/ArraysOfVariableLength2.c
        line: 22
        column: 5
        function: foo
      value: (0LL - (long long )i) + (long long )n >= 0LL
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/ldv-memsafety/ArraysOfVariableLength2.c
        line: 22
        column: 5
        function: foo
      value: (0LL - (long long )i) + (long long )size >= 0LL
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/ldv-memsafety/ArraysOfVariableLength2.c
        line: 22
        column: 5
        function: foo
      value: (198LL - (long long )n) - (long long )size >= 0LL
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/ldv-memsafety/ArraysOfVariableLength2.c
        line: 22
        column: 5
        function: foo
      value: (long long )n - (long long )size >= 0LL
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/ldv-memsafety/ArraysOfVariableLength2.c
        line: 22
        column: 5
        function: foo
      value: (n == size && (((((((((((((4 <= n && 4 <= size) && 4 <= i) && i <= 99)
        && (-8LL + (long long )n) + (long long )size >= 0LL) && (-8LL + (long long
        )i) + (long long )n >= 0LL) && (-8LL + (long long )i) + (long long )size >=
        0LL) && (95LL + (long long )i) - (long long )n >= 0LL) && (95LL + (long long
        )i) - (long long )size >= 0LL) && (198LL - (long long )i) - (long long )n
        >= 0LL) && (198LL - (long long )i) - (long long )size >= 0LL) || (((((((((3
        <= n && 3 <= size) && (-6LL + (long long )n) + (long long )size >= 0LL) &&
        (-6LL + (long long )i) + (long long )n >= 0LL) && (-6LL + (long long )i) +
        (long long )size >= 0LL) && (96LL + (long long )i) - (long long )n >= 0LL)
        && (96LL + (long long )i) - (long long )size >= 0LL) && (102LL - (long long
        )i) - (long long )n >= 0LL) && (102LL - (long long )i) - (long long )size
        >= 0LL) && i == 3)) || (((((((((2 <= n && 2 <= size) && (-4LL + (long long
        )n) + (long long )size >= 0LL) && (-4LL + (long long )i) + (long long )n >=
        0LL) && (-4LL + (long long )i) + (long long )size >= 0LL) && (97LL + (long
        long )i) - (long long )n >= 0LL) && (97LL + (long long )i) - (long long )size
        >= 0LL) && (101LL - (long long )i) - (long long )n >= 0LL) && (101LL - (long
        long )i) - (long long )size >= 0LL) && i == 2)) || (((((((((1 <= n && 1 <=
        size) && (-2LL + (long long )n) + (long long )size >= 0LL) && (-2LL + (long
        long )i) + (long long )n >= 0LL) && (-2LL + (long long )i) + (long long )size
        >= 0LL) && (98LL + (long long )i) - (long long )n >= 0LL) && (98LL + (long
        long )i) - (long long )size >= 0LL) && (100LL - (long long )i) - (long long
        )n >= 0LL) && (100LL - (long long )i) - (long long )size >= 0LL) && i == 1)))
        || (((((((((0 <= n && 0 <= size) && (long long )n + (long long )size >= 0LL)
        && (long long )i + (long long )n >= 0LL) && (long long )i + (long long )size
        >= 0LL) && (99LL + (long long )i) - (long long )n >= 0LL) && (99LL + (long
        long )i) - (long long )size >= 0LL) && (99LL - (long long )i) - (long long
        )n >= 0LL) && (99LL - (long long )i) - (long long )size >= 0LL) && i == 0)
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/ldv-memsafety/ArraysOfVariableLength2.c
        line: 36
        column: 2
        function: main
      value: 0 == i
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/ldv-memsafety/ArraysOfVariableLength2.c
        line: 36
        column: 2
        function: main
      value: i == 0
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/ldv-memsafety/ArraysOfVariableLength2.c
        line: 33
        column: 2
        function: main
      value: ((((4 <= i && i <= 100) || i == 3) || i == 2) || i == 1) || (0 == i &&
        i == 0)
      format: c_expression
