- entry_type: invariant_set
  metadata:
    format_version: "2.0"
    uuid: d739140e-6271-489f-be17-20dc7c3a120e
    creation_time: 2025-03-22T11:33:45Z
    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/libvsync/rec_mcslock.i'''
    task:
      input_files:
      - /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/rec_mcslock.i
      input_file_hashes:
        /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/rec_mcslock.i: 89f4ecf17cdd703d57fdf977621016996b601a0e10c2b1b5ffeae48ee5db4f63
      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/libvsync/rec_mcslock.i
        line: 6019
        column: 9
        function: run
      value: i == 0
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/rec_mcslock.i
        line: 6019
        column: 9
        function: run
      value: (((tid == 0U && j == 2) && (unsigned int )arg == 0U) || ((j == 1 && ((tid
        == 0U || tid == 1U) || tid == 2U)) && (((unsigned int )arg == 0U || (unsigned
        int )arg == 1U) || (unsigned int )arg == 2U))) || ((((((0 == i && 0 == j)
        && arg == tid) && i == j) && j == 0) && ((tid == 0U || tid == 1U) || tid ==
        2U)) && (((unsigned int )arg == 0U || (unsigned int )arg == 1U) || (unsigned
        int )arg == 2U))
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/rec_mcslock.i
        line: 6017
        column: 5
        function: run
      value: ((i == 1 && (j == 1 || j == 2)) && (j == 1 || j == 2)) || ((0 == i &&
        arg == tid) && i == 0)
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/rec_mcslock.i
        line: 6017
        column: 5
        function: run
      value: (tid == 0U || tid == 1U) || tid == 2U
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/rec_mcslock.i
        line: 6017
        column: 5
        function: run
      value: ((unsigned int )arg == 0U || (unsigned int )arg == 1U) || (unsigned int
        )arg == 2U
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/rec_mcslock.i
        line: 573
        column: 10
        function: verification_loop_bound
      value: (bound == 4U && bound == (vuint32_t )4) || (bound == 2U || bound == 3U)
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/rec_mcslock.i
        line: 4840
        column: 5
        function: vatomic32_await_eq
      value: c == 0U
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/rec_mcslock.i
        line: 4840
        column: 5
        function: vatomic32_await_eq
      value: c == (vuint32_t )0
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/rec_mcslock.i
        line: 4840
        column: 5
        function: vatomic32_await_eq
      value: ret == o || ((((0 == o && c == ret) && ret == 0U) && ret == (vuint32_t
        )0) && o == 0U)
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/rec_mcslock.i
        line: 6041
        column: 5
        function: main
      value: i == 3U
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/rec_mcslock.i
        line: 6041
        column: 5
        function: main
      value: ((i == 3U || i == 2U) || i == 1U) || (0 == i && i == 0U)
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/rec_mcslock.i
        line: 4831
        column: 9
        function: vatomicptr_await_neq
      value: c == (void *)0
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/rec_mcslock.i
        line: 4831
        column: 9
        function: vatomicptr_await_neq
      value: (unsigned int )c == 0U
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/rec_mcslock.i
        line: 6024
        column: 9
        function: run
      value: i == 0
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/rec_mcslock.i
        line: 6024
        column: 9
        function: run
      value: ((((tid == 0U && j == 2) && j == 2) && (unsigned int )arg == 0U) || (((j
        == 1 && (j == 1 || j == 2)) && ((tid == 0U || tid == 1U) || tid == 2U)) &&
        (((unsigned int )arg == 0U || (unsigned int )arg == 1U) || (unsigned int )arg
        == 2U))) || ((((0 == j && j == 0) && (j == 1 || j == 2)) && ((tid == 0U ||
        tid == 1U) || tid == 2U)) && (((unsigned int )arg == 0U || (unsigned int )arg
        == 1U) || (unsigned int )arg == 2U))
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/rec_mcslock.i
        line: 6036
        column: 5
        function: main
      value: ((i == 2U || i == 1U) || ((((0 == i && i == 0U) && lock.count == 0U)
        && lock.owner._v == 4294967295U) && (unsigned int )lock.lock.tail._v == 0U))
        || i == 3U
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/rec_mcslock.i
        line: 4841
        column: 9
        function: vatomic32_await_eq
      value: c == 0U
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/rec_mcslock.i
        line: 4841
        column: 9
        function: vatomic32_await_eq
      value: c == (vuint32_t )0
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/rec_mcslock.i
        line: 5439
        column: 537
        function: rec_mcslock_acquire
      value: l == & lock
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/rec_mcslock.i
        line: 5439
        column: 537
        function: rec_mcslock_acquire
      value: (id == 0U || id == 1U) || id == 2U
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/rec_mcslock.i
        line: 4830
        column: 5
        function: vatomicptr_await_neq
      value: c == (void *)0
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/rec_mcslock.i
        line: 4830
        column: 5
        function: vatomicptr_await_neq
      value: (unsigned int )c == 0U
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/rec_mcslock.i
        line: 568
        column: 10
        function: verification_spin_end
      value: v == 0 || v == 1
      format: c_expression
