- entry_type: invariant_set
  metadata:
    format_version: "2.0"
    uuid: 43c6c517-63c9-4a31-a62a-9c3548b92083
    creation_time: 2025-03-22T11:33:54Z
    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/ttaslock.i'''
    task:
      input_files:
      - /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/ttaslock.i
      input_file_hashes:
        /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/ttaslock.i: 1232142cbd2d3669d71853399351b59e265805f095536d7cdae31e54b7810261
      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/ttaslock.i
        line: 5992
        column: 9
        function: run
      value: arg == tid
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/ttaslock.i
        line: 5992
        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/ttaslock.i
        line: 5992
        column: 9
        function: run
      value: j == 1
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/ttaslock.i
        line: 5992
        column: 9
        function: run
      value: j == 1 || (0 == j && j == 0)
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/ttaslock.i
        line: 5992
        column: 9
        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/ttaslock.i
        line: 5992
        column: 9
        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/ttaslock.i
        line: 6004
        column: 5
        function: main
      value: ((i == 3U || i == 2U) || i == 1U) || ((0 == i && i == 0U) && lock.state._v
        == 0U)
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/ttaslock.i
        line: 5987
        column: 9
        function: run
      value: arg == tid
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/ttaslock.i
        line: 5987
        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/ttaslock.i
        line: 5987
        column: 9
        function: run
      value: j == 1 || (((0 == i && 0 == j) && i == j) && j == 0)
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/ttaslock.i
        line: 5987
        column: 9
        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/ttaslock.i
        line: 5987
        column: 9
        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/ttaslock.i
        line: 6026
        column: 10
        function: release
      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/ttaslock.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/ttaslock.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/ttaslock.i
        line: 4841
        column: 9
        function: vatomic32_await_eq
      value: (void *)a == (void *)(& lock.state)
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/ttaslock.i
        line: 5985
        column: 5
        function: run
      value: arg == tid
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/ttaslock.i
        line: 5985
        column: 5
        function: run
      value: ((i == 1 && j == 1) && j == 1) || (0 == i && i == 0)
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/ttaslock.i
        line: 5985
        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/ttaslock.i
        line: 5985
        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/ttaslock.i
        line: 573
        column: 10
        function: verification_loop_bound
      value: (bound == 4U && bound == (vuint32_t )4) || (bound == 2U && bound == (vuint32_t
        )2)
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/ttaslock.i
        line: 5382
        column: 5
        function: ttaslock_acquire
      value: l == & lock
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/ttaslock.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/ttaslock.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/ttaslock.i
        line: 4840
        column: 5
        function: vatomic32_await_eq
      value: (void *)a == (void *)(& lock.state)
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/ttaslock.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/ttaslock.i
        line: 6009
        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/ttaslock.i
        line: 6009
        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/ttaslock.i
        line: 6020
        column: 10
        function: acquire
      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/ttaslock.i
        line: 568
        column: 10
        function: verification_spin_end
      value: v == 0 || v == 1
      format: c_expression
